diff --git a/gravity-sync.sh b/gravity-sync.sh index d980e08..6cac9e1 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -84,6 +84,20 @@ function update_gs { exit } +# Developer Build Update +function beta_gs { + TASKTYPE='UPDATE' + logs_export # dumps log prior to execution because script stops after successful pull + + MESSAGE="Requires GitHub Installation" + echo -e "${INFO} ${MESSAGE}" + git reset --hard + git pull + git checkout origin/development + + exit +} + # Pull Function function pull_gs { TASKTYPE='PULL' @@ -366,6 +380,13 @@ case $# in update_gs exit_nochange ;; + + beta) + TASKTYPE='BETA' + echo -e "[${GREEN}GOOD${NC}] Beta Update Requested" + beta_gs + exit_nochange + ;; logs) TASKTYPE='LOGS'