From 6887ad7003707743c9d5f3dbaffe3b2de3e3ba6b Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Sat, 9 Dec 2017 22:29:59 +0100 Subject: support/scripts/genimage.sh: show usage when invoked incorrectly [Peter: use ${0}] Signed-off-by: Luca Ceresoli Signed-off-by: Peter Korsgaard --- support/scripts/genimage.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'support') 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 <&2 +Error: $@ + +Usage: ${0} -c GENIMAGE_CONFIG_FILE +EOF exit 1 } -- cgit v1.2.1