diff options
| author | Luca Ceresoli <luca@lucaceresoli.net> | 2017-12-09 22:29:59 +0100 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2017-12-11 20:14:39 +0100 |
| commit | 6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b (patch) | |
| tree | 9fd13d05038dc0fb1df88a5c781cef2a07a36520 | |
| parent | 6bfa6b2a046775abe90506930fd1a6aa13d02531 (diff) | |
| download | buildroot-6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b.tar.gz buildroot-6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b.zip | |
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>
| -rwxr-xr-x | support/scripts/genimage.sh | 6 |
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 } |

