diff options
-rwxr-xr-x | andbackup.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/andbackup.sh b/andbackup.sh index 3bcc064..4296973 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -90,8 +90,6 @@ backup_app() { local origifs=${IFS} # Input field seperator at runtime. Useful for # reverting - local tar # Tar command for packaging the backup - # Make sure app is specified if [[ -z ${app} ]]; then lerror "Application name required." @@ -311,7 +309,13 @@ verify_system() { main() { - local cmd=${1:-} + local cmd="${1:-}" + + if [ -z "${cmd:-}" ]; then + printf "Action required (backup, listbackup, restore, listrestore)\n" + return 1 + fi + shift if [ "${cmd}" = 'help' ]; then |