Skip to content

Commit b8ad630

Browse files
committed
trim windows path entries
1 parent d0a3534 commit b8ad630

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/util/shellutil/shellutil.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ func findInstalledGitBash() (string, error) {
171171
pathEnv := os.Getenv("PATH")
172172
pathDirs := filepath.SplitList(pathEnv)
173173
for _, dir := range pathDirs {
174+
dir = strings.Trim(dir, `"`)
174175
if hasDirPart(dir, "system32") {
175176
continue
176177
}

0 commit comments

Comments
 (0)