check for arg count instead of reading missing arg

This commit is contained in:
Matthew Kennedy 2024-03-07 22:22:39 -08:00
parent 6afd468f94
commit 6db9cc3323
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ fi
BOARD_DIR=$1
SHORT_BOARDNAME=$2
if [ -n "$3" ]; then
if [ $# -gt 2 ]; then
INI="$3"
else
INI="fome_${SHORT_BOARDNAME}.ini"