]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - scripts/mkuboot.sh
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
[mv-sheeva.git] / scripts / mkuboot.sh
index 4b06c5eea7283a94524c149f598cfef66872eaaa..446739c7843ab0f28b4efcead8574cd5ac5bb3ac 100755 (executable)
@@ -4,14 +4,14 @@
 # Build U-Boot image when `mkimage' tool is available.
 #
 
-MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage)
+MKIMAGE=$(type -path "${CROSS_COMPILE}mkimage")
 
 if [ -z "${MKIMAGE}" ]; then
        MKIMAGE=$(type -path mkimage)
        if [ -z "${MKIMAGE}" ]; then
                # Doesn't exist
                echo '"mkimage" command not found - U-Boot images will not be built' >&2
-               exit 0;
+               exit 1;
        fi
 fi