summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kernel-install/kernel-install6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index 16c06e0842..9f3a523218 100644
--- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install
@@ -62,7 +62,7 @@ usage()
} >&2
}
-if ! ( [[ $COMMAND ]] && [[ $KERNEL_VERSION ]] && [[ $KERNEL_IMAGE ]] ); then
+if ! ( [[ $COMMAND ]] && [[ $KERNEL_VERSION ]] ); then
usage
exit 1
fi
@@ -101,6 +101,10 @@ readarray -t PLUGINS < <(
case "$COMMAND" in
add)
+ if [[ -z $KERNEL_IMAGE ]]; then
+ usage
+ exit 1
+ fi
mkdir -p "$BOOT_DIR_ABS" || exit 1
for f in "${PLUGINS[@]}"; do