From: Michael Tremer Date: Tue, 9 Jul 2024 08:36:39 +0000 (+0000) Subject: make.sh: Correctly pass the command return code in run_command X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=446dceb149a632478c69ee990625577e50d2bb55;p=people%2Fms%2Fipfire-2.x.git make.sh: Correctly pass the command return code in run_command Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index be0b64809..c48a7e278 100755 --- a/make.sh +++ b/make.sh @@ -845,8 +845,11 @@ run_command() { while :; do wait "$!" + # Store the return code + r="$?" + # If the return code is >= 128, wait has been interrupted by the timer - if [ "$?" -ge 128 ]; then + if [ "${r}" -ge 128 ]; then # Update the runtime case "${quiet}" in false) @@ -857,8 +860,6 @@ run_command() { continue fi - # Store the return code - r="$?" break done