evobackupctl: If no argument is provided, print help and exit

This commit is contained in:
Jérémy Lecour 2024-04-29 10:59:09 +02:00 committed by Jérémy Lecour
parent fd856b7423
commit 0f1d9148fd
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -61,6 +61,12 @@ copy_template() {
}
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
while :; do
case ${1:-''} in