From a08b6ac8e2e9eebc6d3ea48bb98f4d288c7faa1f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 20 Jun 2023 00:56:44 +0100 Subject: build/boot/roms: only set firstoption if argc>0 Signed-off-by: Leah Rowe --- resources/scripts/build/boot/roms | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resources') 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 -- cgit v1.2.1