From: Michael Tremer Date: Wed, 10 Jul 2024 17:40:11 +0000 (+0000) Subject: make.sh: Store the PID in a variable to avoid $! being overwritten X-Git-Tag: v2.29-core188~10^2~256 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59e07d4ba8055e5cc1fc4a551063622c5fdf1bc7;p=ipfire-2.x.git make.sh: Store the PID in a variable to avoid $! being overwritten Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index 1ebd89b1e8..6e188f9947 100755 --- a/make.sh +++ b/make.sh @@ -777,6 +777,8 @@ execute() { # Append the command execute+=( "${command[@]}" ) + local pid + # Return code local r=0 @@ -800,9 +802,12 @@ execute() { "${execute[@]}" >> "${LOGFILE}" 2>&1