Skip to content

Commit f3b14d5

Browse files
committed
Install: fix postinstall script on osx
The macOS install encounteres the following error when running the postinstall script: ./postinstall: /tmp/PKInstallSandbox.qGkbqk/Scripts/com.microsoft.GitCredentialManager.kjGWk5/postinstall: line 21: [: missing `]' This resulted in the credential helper not being correctly configured. The problem is with the test on the indicated line - the '[ ]' test does not support '&&' statements inside the test expression, as it splits the expression into separate commands.
1 parent 824ba03 commit f3b14d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osx/Installer.Mac/scripts/postinstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function IsBrewPkgInstalled
1818
}
1919

2020
# Check if Java GCM is present on this system and unlink it should it exist
21-
if [ -L /usr/local/bin/git-credential-manager && IsBrewPkgInstalled "git-credential-manager" ]
21+
if [ -L /usr/local/bin/git-credential-manager ] && IsBrewPkgInstalled "git-credential-manager";
2222
then
2323
brew unlink git-credential-manager
2424
fi

0 commit comments

Comments
 (0)