From eb864a614b57781c71de9d848ee7b7a572280b2b Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 2 Jun 2020 10:46:02 -0500 Subject: [PATCH] Adds invalid task --- gravity-sync.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 8158606..78785c2 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1253,6 +1253,11 @@ function task_cron { show_crontab } +function task_invalid { + echo_fail + list_gs_arguments +} + # Echo Stack ## Informative function echo_info { @@ -1295,8 +1300,7 @@ function echo_need { case $# in 0) - echo_fail - list_gs_arguments + task_invalid ;; 1) @@ -1414,14 +1418,12 @@ case $# in ;; *) - echo_fail - list_gs_arguments + task_invalid ;; esac ;; *) - echo_fail - list_gs_arguments + task_invalid ;; esac