feat: print mainbranch to stderr
This commit is contained in:
parent
25dd230b9b
commit
21118ee46e
|
@ -5,11 +5,15 @@
|
|||
set -e
|
||||
|
||||
if git branch -l | grep -q "main"; then
|
||||
>&2 echo "mainbranch: selected branch main"
|
||||
sleep 0.5
|
||||
echo "main"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if git branch -l | grep -q "master"; then
|
||||
>&2 echo "mainbranch: selected branch master"
|
||||
sleep 0.5
|
||||
echo "master"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue