build/boot/roms: only set firstoption if argc>0

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-06-20 00:56:44 +01:00
parent 347f0899b7
commit a08b6ac8e2

View File

@@ -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