From 99cc5428ebe2d24a226aff72ddb50501e3665706 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 16:23:02 -0500 Subject: [PATCH] Add dev mode --- gravity-sync.sh | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index bdb7887..63a2b16 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1113,16 +1113,28 @@ case $# in exit_nochange ;; - # beta) - # TASKTYPE='BETA' - # echo_good - - # MESSAGE="${TASKTYPE} Requested" - # echo_info + dev) + TASKTYPE='DEV' + echo_good - # beta_gs - # exit_nochange - # ;; + if [ -f $HOME/${LOCAL_FOLDR}/dev ] + then + MESSAGE="Enabling ${TASKTYPE}" + echo_stat + touch $HOME/${LOCAL_FOLDR}/dev + error_validate + else + MESSAGE="Disabling ${TASKTYPE}" + echo_stat + rm -f $HOME/${LOCAL_FOLDR}/dev + error_validate + fi + + MESSAGE="Please run ${YELLOW}update${NC}" + echo_info + + exit_withchange + ;; logs) TASKTYPE='LOGS'