From 8739969c00fe2e42703fb5eb716cfcfb4588e8bd Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 2 Dec 2025 23:02:50 -0600 Subject: [PATCH] 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. --- build/scripts/bootstrap-example.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1