Skip to content

Commit

Permalink
Re #8882. Don't exit cmd.exe if called from another batch script.
Browse files Browse the repository at this point in the history
Add the /B flag to ensure that control is returned to the calling batch
script.
  • Loading branch information
RussellTaylor committed Feb 10, 2014
1 parent a4a8e61 commit aa016da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/fetch_Third_Party.bat
Expand Up @@ -19,7 +19,7 @@ if defined FOUND (
set GitCmd=git.exe
) else (
echo Cannot find git. Make sure the cmd folder is in your path.
exit 1
exit /B 1
)
)
echo Using %GitCmd%
Expand Down Expand Up @@ -52,7 +52,7 @@ if NOT "%1"=="" (
set arch=win32
) else (
echo "Unknown architecture. Valid options are:win32,win64."
exit 1
exit /B 1
)
)
)
Expand Down Expand Up @@ -81,7 +81,7 @@ echo %libs%
:: Otherwise we need to clone
echo Cloning Third_Party libraries from %libs%
call %GitCmd% clone %libs% Third_Party/lib/%arch%
exit 0
exit /B 0

:: Just making sure what we have is up to date
:UpdateInc
Expand All @@ -98,4 +98,4 @@ cd Third_Party/lib/%arch%
call %GitCmd% pull
:: Be sure to end up back where we started
cd ../../..
exit 0
exit /B 0

0 comments on commit aa016da

Please sign in to comment.