projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bfa6b2
)
support/scripts/genimage.sh: show usage when invoked incorrectly
author
Luca Ceresoli
<luca@lucaceresoli.net>
Sat, 9 Dec 2017 21:29:59 +0000
(22:29 +0100)
committer
Peter Korsgaard
<peter@korsgaard.com>
Mon, 11 Dec 2017 19:14:39 +0000
(20:14 +0100)
[Peter: use ${0}]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/genimage.sh
patch
|
blob
|
history
diff --git
a/support/scripts/genimage.sh
b/support/scripts/genimage.sh
index 625afc108c82f107e1e982a8a7cca624f510e9a1..039b3fef1de6c2597a800e4b9a865df29cacd1c8 100755
(executable)
--- 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
}