Skip to content

Commit 3b09b4e

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 <krystian.hebel@3mdeb.com>
1 parent dccb605 commit 3b09b4e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ function build_odroid_h4 {
358358
fi
359359
}
360360

361+
if [ $# -lt 1 ]; then
362+
usage
363+
exit
364+
fi
365+
361366
CMD="$1"
362367

363368
case "$CMD" in

0 commit comments

Comments
 (0)