Update init-tools to return instead of exit 0
authorEric Erhardt <eric.erhardt@microsoft.com>
Fri, 13 Oct 2017 19:57:53 +0000 (14:57 -0500)
committerEric Erhardt <eric.erhardt@microsoft.com>
Fri, 13 Oct 2017 19:57:53 +0000 (14:57 -0500)
Commit migrated from https://github.com/dotnet/core-setup/commit/ebf126f2a02a015fc1eaf6f5fbbd7883fc48f8f7

src/installer/init-tools.sh

index 3c1a0a7..1a0f7ae 100755 (executable)
@@ -32,7 +32,7 @@ if [ -d "$DotNetBuildToolsDir" ]; then
 
     echo "Done initializing tools."
     mkdir -p "$(dirname "$__BUILD_TOOLS_SEMAPHORE")" && touch $__BUILD_TOOLS_SEMAPHORE
-    exit 0
+    return #return instead of exit because this script is inlined in other scripts which we don't want to exit
 fi
 
 echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log