neofetch: Fix issue with locating git (#2729)

* neofetch: Fix issue with locating git

Fixes #1579

* neofetch: simplify and leverage scoop which
This commit is contained in:
David Wettstein 2021-10-08 15:09:12 +02:00 committed by GitHub
parent 7c2bf982cf
commit cf72f64036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
"hash": "3dc33493e54029fb1528251552093a9f9a2894fcf94f9c3a6f809136a42348c7",
"pre_install": [
"if(installed 'git-with-openssh') { $git = 'git-with-openssh' } else { $git = 'git' }",
"Write-Output \"& `$(join-path `$(scoop prefix $git) 'bin\\bash.exe') `$(join-path `$psscriptroot 'neofetch') @args\" | Out-File \"$dir\\neofetch.ps1\" -encoding utf8"
"Write-Output \"`$GitDir = (Get-Item `$(scoop which $git) -ErrorAction:Stop).Directory.Parent; if (`$GitDir.FullName -imatch 'mingw') { `$GitDir = `$GitDir.Parent }; & `$(Join-Path (Join-Path `$GitDir.FullName 'bin') 'bash.exe') `$(Join-Path `$PSScriptRoot 'neofetch') @args\" | Out-File \"$dir\\neofetch.ps1\" -Encoding utf8"
],
"bin": "neofetch.ps1",
"checkver": "github",