浏览代码

powerpc/install: Bail with error code on error in install script

If anything goes wrong when copying images into the install path, then
the install script should exit with an error code so that 'make' knows
about it and tells the user.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Grant Likely 16 年之前
父节点
当前提交
529273c1ad
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/powerpc/boot/install.sh

+ 3 - 0
arch/powerpc/boot/install.sh

@@ -18,6 +18,9 @@
 #   $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc.
 #   $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc.
 #
 #
 
 
+# Bail with error code if anything goes wrong
+set -e
+
 # User may have a custom install script
 # User may have a custom install script
 
 
 if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
 if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi