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>
This commit is contained in:
Krystian Hebel
2025-01-20 12:56:48 +01:00
committed by Michał Żygowski
parent dccb6051e7
commit 3b09b4e618
+5
View File
@@ -358,6 +358,11 @@ function build_odroid_h4 {
fi
}
if [ $# -lt 1 ]; then
usage
exit
fi
CMD="$1"
case "$CMD" in