Skip to content

Commit b6faa3b

Browse files
kborowinskikelleyma49
authored andcommitted
Properly detect if git is installed using scoop regardless of scope (#278)
This fixes the issue #272
1 parent 744287b commit b6faa3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSFzf.Git.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function SetupGitPaths() {
6262
$script:scoopInfo = Get-Command scoop -ErrorAction Ignore
6363
if ($null -ne $script:scoopInfo) {
6464
# Detect if git is installed using scoop (using shims)
65-
if ((Split-Path $gitInfo.Source -Parent) -eq (Split-Path $script:scoopInfo.Source -Parent)) {
65+
if ($gitInfo.Source -match 'scoop[\\/]shims') {
6666
# Get the proper git position relative to scoop shims" position
6767
$gitInfo = Get-Command "$($gitInfo.Source)\..\..\apps\git\current\bin\git.exe"
6868
}

0 commit comments

Comments
 (0)