From 7f38d43256fd8854e26a4202ce16e72607e1c4e7 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sun, 24 May 2020 20:23:19 -0500 Subject: [PATCH] Beta branch update --- gravity-sync.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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'