summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-20 00:56:44 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-20 00:56:44 +0100
commita08b6ac8e2e9eebc6d3ea48bb98f4d288c7faa1f (patch)
treeaf7e0c2dd758aa9204cf726fb51344154d5ffcbc
parent347f0899b74b687c30d5c269225c502f232671e9 (diff)
build/boot/roms: only set firstoption if argc>0
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xresources/scripts/build/boot/roms3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/scripts/build/boot/roms b/resources/scripts/build/boot/roms
index f0398273..28885e62 100755
--- a/resources/scripts/build/boot/roms
+++ b/resources/scripts/build/boot/roms
@@ -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