Skip to content

Commit b9d2cba

Browse files
committed
net-installer: fix fallback line
First of all, `IF ERRORLEVEL <n>` means: "if the last program run returned an exit code equal to *or greater than* the number specified" (emphasis added). Therefore, `IF NOT ERRORLEVEL 0` has no chance of ever succeeding. Second, we cannot really rely on Bash being installed correctly, so let's just ask the user to acknowledge the error messages by pressing a key. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bc7336c commit b9d2cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-installer/setup-git-sdk.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
@REM now clone the Git sources, build it, and start an interactive shell
4242
@bash --login -c "mkdir -p /usr/src && cd /usr/src && git clone -b @@GIT_BRANCH@@ -c core.autocrlf=false https://github.com/git-for-windows/git && cd git && make install; bash -i"
4343

44-
@IF NOT ERRORLEVEL 0 bash --login -i
44+
@IF ERRORLEVEL 1 PAUSE

0 commit comments

Comments
 (0)