Skip to content

Commit 7e388b8

Browse files
krystian-hebelmiczyg1
authored andcommitted
build.sh: print usage when no argument is passed
Without it, the script failed with cryptic error: $ ./build.sh ./build.sh: line 259: $1: unbound variable Change-Id: I2472c3451d6754f978f39b23a3492ed369151861 Signed-off-by: Krystian Hebel <[email protected]>
1 parent e957bd8 commit 7e388b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ function build_odroid_h4 {
383383
fi
384384
}
385385

386+
if [ $# -lt 1 ]; then
387+
usage
388+
exit
389+
fi
390+
386391
CMD="$1"
387392

388393
case "$CMD" in

0 commit comments

Comments
 (0)