From 62c57c38a3b38da00f4fe1730c876b4a8695d54f Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Fri, 13 Oct 2017 14:57:53 -0500 Subject: [PATCH] Update init-tools to return instead of exit 0 Commit migrated from https://github.com/dotnet/core-setup/commit/ebf126f2a02a015fc1eaf6f5fbbd7883fc48f8f7 --- src/installer/init-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/init-tools.sh b/src/installer/init-tools.sh index 3c1a0a7..1a0f7ae 100755 --- a/src/installer/init-tools.sh +++ b/src/installer/init-tools.sh @@ -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 -- 2.7.4