From 5a25bd3686319912613621681a4d052d535ba9f4 Mon Sep 17 00:00:00 2001 From: th33xitus <> Date: Sun, 23 Aug 2020 21:52:18 +0200 Subject: [PATCH] fix: remove old read branch function --- scripts/status.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scripts/status.sh b/scripts/status.sh index 6f226cd..a96c79c 100755 --- a/scripts/status.sh +++ b/scripts/status.sh @@ -111,21 +111,6 @@ octoprint_status(){ fi } -#read_branch(){ -# if [ -d $KLIPPER_DIR ] && [ -d $KLIPPER_DIR/.git ]; then -# cd $KLIPPER_DIR -# GET_BRANCH=$(git branch -a | head -1 | cut -d " " -f5 | cut -d ")" -f1) -# #if reading the branch gives an empty string -# #we are on non-detached HEAD state on origin/master -# #and need to set GET_BRANCH to make a non-empty string -# if [ -z "$GET_BRANCH" ]; then -# GET_BRANCH="origin/master" -# fi -# else -# GET_BRANCH="" -# fi -#} - #reading the log for the last branch that got checked out assuming that this is also the currently active branch. read_branch(){ if [ -d $KLIPPER_DIR/.git ]; then