testing: Abort kernel build if patch can't be applied
This commit is contained in:
1 parent
613cd016ee
commit
a6312f2ae9
1 file changed
+3
-2
@@ -37,8 +37,9 @@ then
|
|||||||
then
|
then
|
||||||
log_action "Applying kernel patch"
|
log_action "Applying kernel patch"
|
||||||
bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1
|
bzcat $KERNELPATCH | patch -d $KERNELDIR -p1 >>$LOGFILE 2>&1
|
||||||
log_status $?
|
status=$?
|
||||||
[ $? -eq 0 ] || exit 1
|
log_status $status
|
||||||
|
[ $status -eq 0 ] || exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd $KERNELDIR
|
cd $KERNELDIR
|
||||||
|
|||||||
Reference in new issue
Block a user