mirror of https://github.com/FOME-Tech/fome-fw.git
check for arg count instead of reading missing arg
This commit is contained in:
parent
6afd468f94
commit
6db9cc3323
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue