From f21d34a7f8e038f414312a2f2eabbac5da28f41b Mon Sep 17 00:00:00 2001 From: jaykishan mutkawoa Date: Mon, 23 Oct 2023 21:28:12 -0400 Subject: [PATCH] Exit CD when fail for a variety of reasons --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 61a6aed0af..8ac354ea3e 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -11,7 +11,7 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Change into that directory -cd "$DIR" +cd "$DIR" || exit # Determine the arch/os combos we're building for XC_ARCH=${XC_ARCH:-"386 amd64 arm"}