From: Tobias Brunner Date: Fri, 23 Dec 2022 09:31:14 +0000 (+0100) Subject: testing: Abort kernel build if patch can't be applied X-Git-Tag: 5.9.9rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6312f2ae97a4276266b75651934df480d83852d;p=thirdparty%2Fstrongswan.git testing: Abort kernel build if patch can't be applied --- diff --git a/testing/scripts/build-guestkernel b/testing/scripts/build-guestkernel index f7ffdab58f..9114e50dd7 100755 --- a/testing/scripts/build-guestkernel +++ b/testing/scripts/build-guestkernel @@ -37,8 +37,9 @@ then then log_action "Applying kernel patch" bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1 - log_status $? - [ $? -eq 0 ] || exit 1 + status=$? + log_status $status + [ $status -eq 0 ] || exit 1 fi fi cd $KERNELDIR