Commit 529273c1 authored by Grant Likely's avatar Grant Likely Committed by Benjamin Herrenschmidt

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: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 7dafd239
...@@ -18,6 +18,9 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment