Open rryan opened 6 years ago
Probably relevant: http://mywiki.wooledge.org/BashFAQ/105
My current hunch is that build_environment.sh is called as part of a pipeline, and only the last command in a pipeline returning an error triggers an exit.
scripts/macosx/build_environment.sh --dependency-cache ${RESOURCE_PATH} --name ${ENVIRONMENT_NAME} --macosx-sdk ${MACOSX_SDK} --macosx-target ${MACOSX_TARGET} ${ENABLE_ARCH} --macosx-stdlib libc++ 2>&1 | tee environment/${ENVIRONMENT_NAME}/build_environment.log
If we use set -o pipefail
this should work around it.
build_environment.sh
can return 0 when an error occurred.For example, if this tar invocation fails to find the file to untar.