remove: update check for branch dev-2.0

abandon the dev-2.0 branch
This commit is contained in:
th33xitus
2020-09-17 18:49:58 +02:00
parent db0a4b4e03
commit bd876c744d
2 changed files with 2 additions and 9 deletions

View File

@@ -1,17 +1,11 @@
kiauh_status(){ kiauh_status(){
if [ -d "${HOME}/kiauh/.git" ]; then if [ -d "${SRCDIR}/kiauh/.git" ]; then
cd ${HOME}/kiauh cd ${HOME}/kiauh
git fetch --all -q git fetch -q
if git branch -a | grep "* master" -q; then if git branch -a | grep "* master" -q; then
CURR_KIAUH_BRANCH="master" #needed to display branch in UI
if [[ "$(git rev-parse --short=8 origin/master)" != "$(git rev-parse --short=8 HEAD)" ]]; then if [[ "$(git rev-parse --short=8 origin/master)" != "$(git rev-parse --short=8 HEAD)" ]]; then
KIAUH_UPDATE_AVAIL="true" KIAUH_UPDATE_AVAIL="true"
fi fi
elif git branch -a | grep "* dev-2.0" -q; then
CURR_KIAUH_BRANCH="dev-2.0" #needed to display branch in UI
if [[ "$(git rev-parse --short=8 origin/dev-2.0)" != "$(git rev-parse --short=8 HEAD)" ]]; then
KIAUH_UPDATE_AVAIL="true"
fi
fi fi
fi fi
} }

View File

@@ -15,7 +15,6 @@ quit_footer(){
hr hr
echo -e "| ${red}Q) Quit${default} | " echo -e "| ${red}Q) Quit${default} | "
bottom_border bottom_border
echo -e " KIAUH: $CURR_KIAUH_BRANCH"
} }
print_header(){ print_header(){