From 6e86e4dc4d23704813ad61091bdd0e3ba5de1062 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 2 Jun 2020 11:31:07 -0500 Subject: [PATCH] Show dev branch on update --- gravity-sync.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index f08cebd..34f473f 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -106,8 +106,10 @@ function update_gs { if [ -f "$HOME/${LOCAL_FOLDR}/dev" ] then BRANCH='development' + B_SHORT='DEV' else BRANCH='master' + B_SHORT='' fi GIT_CHECK=$(git status | awk '{print $1}') @@ -123,7 +125,7 @@ function update_gs { echo_stat git fetch --all >/dev/null 2>&1 error_validate - MESSAGE="Applying Update" + MESSAGE="Applying Update ${B_SHORT}" echo_stat git reset --hard origin/${BRANCH} >/dev/null 2>&1 error_validate