fixed getting the current branch in the push script
This commit is contained in:
2
push.sh
2
push.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user