aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Luca Ceresoli <luca@lucaceresoli.net>2017-12-09 22:29:59 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-12-11 20:14:39 +0100
commit6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b (patch)
tree9fd13d05038dc0fb1df88a5c781cef2a07a36520 /support
parent6bfa6b2a046775abe90506930fd1a6aa13d02531 (diff)
downloadbuildroot-6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b.tar.gz
buildroot-6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b.tar.bz2
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>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/genimage.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/scripts/genimage.sh b/support/scripts/genimage.sh
index 625afc108c..039b3fef1d 100755
--- a/support/scripts/genimage.sh
+++ b/support/scripts/genimage.sh
@@ -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
}