kernel-install: don't make unused parameter mandatory

We only use the image name in the case we're adding a kernel

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou
2013-03-26 18:11:31 +01:00
committed by Harald Hoyer
parent 5666ea6fca
commit d82d87dac1
+5 -1
View File
@@ -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