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