summaryrefslogtreecommitdiffstats
path: root/arch/riscv/boot/install.sh
diff options
context:
space:
mode:
authorZhang Bingwu <xtexchooser@duck.com>2024-07-14 10:57:50 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-20 06:34:54 +0200
commitaf7925d82096d30bf971d41a109bd42f6a027ec2 (patch)
tree724867071aa4defc8908ddb48e202d19469751bd /arch/riscv/boot/install.sh
parentkconfig: remove 'e1' and 'e2' macros from expression deduplication (diff)
downloadlinux-af7925d82096d30bf971d41a109bd42f6a027ec2.tar.xz
linux-af7925d82096d30bf971d41a109bd42f6a027ec2.zip
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)