From 470dc3a2daf333975045097dab78fef183f9ab7b Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Fri, 23 Oct 2020 14:23:53 +0000 Subject: [PATCH] add info function --- gravity-sync.sh | 3 +++ includes/gs-update.sh | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index fabcde6..b2dbc84 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -157,6 +157,9 @@ case $# in sudo) start_gs task_sudo ;; + info) + start_gs + task_info ;; *) start_gs task_invalid ;; diff --git a/includes/gs-update.sh b/includes/gs-update.sh index be3a4e9..3928eef 100644 --- a/includes/gs-update.sh +++ b/includes/gs-update.sh @@ -143,5 +143,14 @@ function task_version { echo_good show_version + exit_nochange +} + +## Info Task + +function task_info() { + TASKTYPE='INFO' + MESSAGE="${MESSAGE}: ${TASKTYPE} Requested" + exit_nochange } \ No newline at end of file