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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cd196cfc8cc7a938cfc7d8d551aac518e2c74fa;p=people%2Fms%2Fipfire-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 1ebd89b1e..6e188f994 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