evobackupctl: If no argument is provided, print help and exit
This commit is contained in:
parent
fd856b7423
commit
0f1d9148fd
|
@ -61,6 +61,12 @@ copy_template() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
# If no argument is provided, print help and exit
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
if [ -z ${1:-''} ]; then
|
||||||
|
show_help
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
# Parse options, based on https://gist.github.com/deshion/10d3cb5f88a21671e17a
|
# Parse options, based on https://gist.github.com/deshion/10d3cb5f88a21671e17a
|
||||||
while :; do
|
while :; do
|
||||||
case ${1:-''} in
|
case ${1:-''} in
|
||||||
|
|
Loading…
Reference in a new issue