]> Kevux Git Server - fll/commitdiff
Bugfix: Bootstrap example script is not returning proper error codes.
authorKevin Day <Kevin@kevux.org>
Wed, 3 Dec 2025 05:02:50 +0000 (23:02 -0600)
committerKevin Day <Kevin@kevux.org>
Wed, 3 Dec 2025 05:02:50 +0000 (23:02 -0600)
The echo commands result in `$?` being a non-error code.
Just return `1` when printing errors.

build/scripts/bootstrap-example.sh

index 90ed6078dfecfc4f4fdd9287ba04c3b823fe7266..bb24ee5db0da75f0553d189bce894a4e6b24c837 100644 (file)
@@ -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