mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
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
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "Error: $@" >&2
|
cat <<EOF >&2
|
||||||
|
Error: $@
|
||||||
|
|
||||||
|
Usage: ${0} -c GENIMAGE_CONFIG_FILE
|
||||||
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user