Exit CD when fail for a variety of reasons

This commit is contained in:
jaykishan mutkawoa 2023-10-23 21:28:12 -04:00 committed by Jaykishan Mutkawoa
parent e539f46e85
commit f21d34a7f8

View file

@ -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"}