powerpc/install: Bail with error code on error in install script
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 6 Jun 2009 06:39:46 +0000 (06:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 03:26:16 +0000 (13:26 +1000)
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>
arch/powerpc/boot/install.sh

index 51b2387bdba0e82dfd8b75de48b56a18cd4fd2ef..98312d169c859926932356cd7018a57ffed23e9f 100644 (file)
@@ -18,6 +18,9 @@
 #   $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
 
 if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi