From 0668ea46d4daeb1e61dfb678a954104d76de2cd5 Mon Sep 17 00:00:00 2001 From: Russell Taylor <taylorrj@ornl.gov> Date: Mon, 10 Feb 2014 17:32:28 -0500 Subject: [PATCH] Re #8882. Don't exit cmd.exe if called from another batch script. Add the /B flag to ensure that control is returned to the calling batch script. --- Code/fetch_Third_Party.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/fetch_Third_Party.bat b/Code/fetch_Third_Party.bat index e2e5908c856..b534c96efc7 100755 --- a/Code/fetch_Third_Party.bat +++ b/Code/fetch_Third_Party.bat @@ -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% @@ -52,7 +52,7 @@ if NOT "%1"=="" ( set arch=win32 ) else ( echo "Unknown architecture. Valid options are:win32,win64." - exit 1 + exit /B 1 ) ) ) @@ -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 @@ -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 -- GitLab