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