support/scripts/genimage.sh: show usage when invoked incorrectly
[Peter: use ${0}] Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
6bfa6b2a04
commit
6887ad7003
@ -1,7 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
die() {
|
||||
echo "Error: $@" >&2
|
||||
cat <<EOF >&2
|
||||
Error: $@
|
||||
|
||||
Usage: ${0} -c GENIMAGE_CONFIG_FILE
|
||||
EOF
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user