mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
make.sh: Correctly pass the command return code in run_command
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
7
make.sh
7
make.sh
@@ -845,8 +845,11 @@ run_command() {
|
|||||||
while :; do
|
while :; do
|
||||||
wait "$!"
|
wait "$!"
|
||||||
|
|
||||||
|
# Store the return code
|
||||||
|
r="$?"
|
||||||
|
|
||||||
# If the return code is >= 128, wait has been interrupted by the timer
|
# 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
|
# Update the runtime
|
||||||
case "${quiet}" in
|
case "${quiet}" in
|
||||||
false)
|
false)
|
||||||
@@ -857,8 +860,6 @@ run_command() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Store the return code
|
|
||||||
r="$?"
|
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user