summaryrefslogtreecommitdiff
path: root/andbackup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'andbackup.sh')
-rwxr-xr-xandbackup.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/andbackup.sh b/andbackup.sh
index e8bbae8..c48a86f 100755
--- a/andbackup.sh
+++ b/andbackup.sh
@@ -315,6 +315,11 @@ main() {
local cmd=${1:-}
shift
+ if [ "${cmd}" = 'help' ]; then
+ usage
+ return 0
+ fi
+
# Ensure root is running this script
if [ $(id -u) -gt 0 ]; then
lerror "Script must be run as root (uid 0)."
@@ -333,8 +338,6 @@ main() {
list_restore_apps ${@}
elif [ "${cmd}" = 'ls' ] || [ "${cmd}" = 'list' ]; then
list_apps
- elif [ "${cmd}" = 'help' ]; then
- usage
else
lerror "Unknown command '${cmd}'"
usage

Generated by cgit