X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fkernel-install%2Fkernel-install;fp=src%2Fkernel-install%2Fkernel-install;h=9f3a5232181de5ef1dd0fc737d5513e3c6b313c5;hp=16c06e08421da98de928095d4db4e7b743ce165d;hb=d82d87dac1233ddd109437844321645be5bcd4cb;hpb=5666ea6fcaaf1e829de07625b7c185949b23fecd diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install index 16c06e084..9f3a52321 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