From 0605ccb7bab4c787c68a623717e0eef7ebd7d26d Mon Sep 17 00:00:00 2001 From: Gordan Markuš Date: Mon, 27 Feb 2017 10:07:03 +0100 Subject: setup-environment: don't exit the shell on error If the user doesn't source the setup-environment.sh script do not exit the current terminal window Change-Id: I4c1df6bab434a8342abcf96a7ed4b9ccc257c8aa Reviewed-by: Samuli Piippo --- scripts/setup-environment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index 2f8264b..b6c4710 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh @@ -44,7 +44,7 @@ done THIS_SCRIPT="setup-environment.sh" if [ "$(basename -- $0)" = "${THIS_SCRIPT}" ]; then echo "Error: This script needs to be sourced. Please run as '. $0'" - exit 1 + return 1 fi if [ -z "$MACHINE" ]; then -- cgit v1.2.3-54-g00ecf