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)"
|
||||
opts=""
|
||||
boards=
|
||||
firstoption="${1}"
|
||||
firstoption=""
|
||||
|
||||
main()
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ main()
|
|||
usage
|
||||
exit 1
|
||||
fi
|
||||
firstoption="${1}"
|
||||
|
||||
if [ "${firstoption}" = "help" ]; then
|
||||
usage
|
||||
|
|
Loading…
Reference in New Issue