From aa6f5f8005850d6783a04784e90c0921f31e7f37 Mon Sep 17 00:00:00 2001 From: Arata Notsu Date: Tue, 12 Feb 2013 17:43:35 +0900 Subject: [PATCH] Correct misuse of return in ramdisk-image-create Replaced return with exit. Change-Id: Iee26177cdb58af67b6919da12456debfe5940105 --- bin/ramdisk-image-create | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ramdisk-image-create b/bin/ramdisk-image-create index 67a1aab79..2186df69c 100755 --- a/bin/ramdisk-image-create +++ b/bin/ramdisk-image-create @@ -75,14 +75,14 @@ FIRMWARE_DIR=$MODULE_ROOT/lib/firmware if [ ! -d "$MODULE_DIR" ]; then echo "ERROR: kernel module directory not found at $MODULE_DIR" - return 1 + exit 1 fi LIB_UDEV=$LIB_UDEV_ROOT/lib/udev if [ ! -d "$LIB_UDEV" ]; then echo "ERROR: udev directory not found at $LIB_UDEV" - return 1 + exit 1 fi mk_build_dir