fixed getting the current branch in the push script

This commit is contained in:
Mohammad-Ali Minaie
2018-11-02 22:05:13 -04:00
parent 8af16328fb
commit 1bfb6902de

View File

@@ -7,7 +7,7 @@ git status
#git commit -m "${com}" #git commit -m "${com}"
#echo $(git branch) #echo $(git branch)
git branch git branch
gitBranch=$(git branch) gitBranch=$(git symbolic-ref --short HEAD)
read -p "Is this the correct branch (y/n)?" CONT read -p "Is this the correct branch (y/n)?" CONT
if [ "$CONT" = "y" ]; then if [ "$CONT" = "y" ]; then