TASKTYPES for everyone

This commit is contained in:
Michael Stanclift 2020-05-24 20:06:11 -05:00
parent 7dff206d55
commit a64e31f0cb

View File

@ -340,23 +340,27 @@ case $# in
;; ;;
version) version)
TASKTYPE='VERSION'
show_version show_version
exit_nochange exit_nochange
;; ;;
update) update)
TASKTYPE='UPDATE'
echo -e "[${GREEN}GOOD${NC}] Update Requested" echo -e "[${GREEN}GOOD${NC}] Update Requested"
update_gs update_gs
exit_nochange exit_nochange
;; ;;
logs) logs)
TASKTYPE='LOGS'
MESSAGE="Logs Requested" MESSAGE="Logs Requested"
echo -e "${GOOD} ${MESSAGE}" echo -e "${GOOD} ${MESSAGE}"
logs_gs logs_gs
;; ;;
cron) cron)
TASKTYPE='CRON'
echo -e "${GOOD} ${MESSAGE}" echo -e "${GOOD} ${MESSAGE}"
CRONPATH="$HOME/${LOCAL_FOLDR}/${CRONJOB_LOG}" CRONPATH="$HOME/${LOCAL_FOLDR}/${CRONJOB_LOG}"