]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Abort kernel build if patch can't be applied
authorTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2022 09:31:14 +0000 (10:31 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2022 09:31:14 +0000 (10:31 +0100)
testing/scripts/build-guestkernel

index f7ffdab58fea85c5ffdcb5d7cd9a4669e1b0b9c5..9114e50dd7f48ff882dec3fe1c88f36316a809cb 100755 (executable)
@@ -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