aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/boot/install.sh
diff options
context:
space:
mode:
authorZhang Bingwu <[email protected]>2024-07-14 16:57:50 +0800
committerMasahiro Yamada <[email protected]>2024-07-20 13:34:54 +0900
commitaf7925d82096d30bf971d41a109bd42f6a027ec2 (patch)
tree724867071aa4defc8908ddb48e202d19469751bd /arch/arm/boot/install.sh
parent3c2f84cedaeb2fe9575dd3f6edddf0d875b3b97c (diff)
kbuild: Abort make on install failures
Setting '-e' flag tells shells to exit with error exit code immediately after any of commands fails, and causes make(1) to regard recipes as failed. Before this, make will still continue to succeed even after the installation failed, for example, for insufficient permission or directory does not exist. Signed-off-by: Zhang Bingwu <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'arch/arm/boot/install.sh')
-rwxr-xr-xarch/arm/boot/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/install.sh b/arch/arm/boot/install.sh
index 9ec11fac7d8d..34e2c6e31fd1 100755
--- a/arch/arm/boot/install.sh
+++ b/arch/arm/boot/install.sh
@@ -17,6 +17,8 @@
# $3 - kernel map file
# $4 - default install path (blank if root directory)
+set -e
+
if [ "$(basename $2)" = "zImage" ]; then
# Compressed install
echo "Installing compressed kernel"