summaryrefslogtreecommitdiff
path: root/arch/riscv/boot/install.sh
diff options
context:
space:
mode:
authorZhang Bingwu <xtexchooser@duck.com>2024-07-14 11:57:50 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-20 07:34:54 +0300
commitaf7925d82096d30bf971d41a109bd42f6a027ec2 (patch)
tree724867071aa4defc8908ddb48e202d19469751bd /arch/riscv/boot/install.sh
parent3c2f84cedaeb2fe9575dd3f6edddf0d875b3b97c (diff)
downloadlinux-af7925d82096d30bf971d41a109bd42f6a027ec2.tar.xz
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 <xtexchooser@duck.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'arch/riscv/boot/install.sh')
-rwxr-xr-xarch/riscv/boot/install.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/boot/install.sh b/arch/riscv/boot/install.sh
index a8df7591513a..4b3d8bf91cc6 100755
--- a/arch/riscv/boot/install.sh
+++ b/arch/riscv/boot/install.sh
@@ -17,6 +17,8 @@
# $3 - kernel map file
# $4 - default install path (blank if root directory)
+set -e
+
case "${2##*/}" in
# Compressed install
Image.*|vmlinuz.efi)