Commit d82d87da authored by Marc-Antoine Perennou's avatar Marc-Antoine Perennou Committed by Harald Hoyer
Browse files

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: default avatarMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
parent 5666ea6f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment