From: Kevin Day Date: Wed, 3 Dec 2025 05:02:50 +0000 (-0600) Subject: Bugfix: Bootstrap example script is not returning proper error codes. X-Git-Tag: 0.8.0~63 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=8739969c00fe2e42703fb5eb716cfcfb4588e8bd;p=fll Bugfix: Bootstrap example script is not returning proper error codes. The echo commands result in `$?` being a non-error code. Just return `1` when printing errors. --- diff --git a/build/scripts/bootstrap-example.sh b/build/scripts/bootstrap-example.sh index 90ed607..bb24ee5 100644 --- a/build/scripts/bootstrap-example.sh +++ b/build/scripts/bootstrap-example.sh @@ -365,14 +365,14 @@ boostrap_process() { echo "ERROR: failed to change directory to 'package/program'." echo - if [[ ${?} -ne 0 ]] ; then return 1 ; fi + return 1 fi elif [[ ${1} != "individual" && ${1} != "level" && ${1} != "monolithic" ]] ; then echo echo "ERROR: '${1}' is not a supported build mode." echo - if [[ ${?} -ne 0 ]] ; then return 1 ; fi + return 1 fi return 0