Commit b3984566 authored by Henrik Nordstrom's avatar Henrik Nordstrom
Browse files

usb-boot: Check number of arguments before eating them

parent e5736fd0
......@@ -14,9 +14,15 @@ case "$1" in
*.scr) bootscr="$1"; shift
;;
esac
kernel=$1; shift || true
scriptbin=$1; shift || true
initramfs=$1; shift || true
if [ $# -ge 1 ]; then
kernel=$1; shift || true
fi
if [ $# -ge 1 ]; then
scriptbin=$1; shift || true
fi
if [ $# -ge 1 ]; then
initramfs=$1; shift || true
fi
fel() {
echo fel "$@"
$top/fel $@
......
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