build/boot/roms: only set firstoption if argc>0
Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
347f0899b7
commit
a08b6ac8e2
|
@ -32,7 +32,7 @@ set -u -e
|
||||||
projectname="$(cat projectname)"
|
projectname="$(cat projectname)"
|
||||||
opts=""
|
opts=""
|
||||||
boards=
|
boards=
|
||||||
firstoption="${1}"
|
firstoption=""
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,7 @@ main()
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
firstoption="${1}"
|
||||||
|
|
||||||
if [ "${firstoption}" = "help" ]; then
|
if [ "${firstoption}" = "help" ]; then
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in New Issue