aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/install.sh
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2009-06-06 02:39:46 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-06-14 23:26:16 -0400
commit529273c1ad5f591d066a9d90a6bd6affa19c5461 (patch)
tree2a34ad4fa66f0b83d7f458fd6dd55ec11696c13c /arch/powerpc/boot/install.sh
parent7dafd239ab522d38979ebe44d79aa68ad7b1a383 (diff)
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>
Diffstat (limited to 'arch/powerpc/boot/install.sh')
-rw-r--r--arch/powerpc/boot/install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/boot/install.sh b/arch/powerpc/boot/install.sh
index 51b2387bdba0..98312d169c85 100644
--- a/arch/powerpc/boot/install.sh
+++ b/arch/powerpc/boot/install.sh
@@ -18,6 +18,9 @@
18# $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc. 18# $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc.
19# 19#
20 20
21# Bail with error code if anything goes wrong
22set -e
23
21# User may have a custom install script 24# User may have a custom install script
22 25
23if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi 26if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi