Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit f4414b4

Browse files
authored
checkgit: Check main instead of master (#792)
1 parent a7c3805 commit f4414b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/checkgit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ GIT_BRANCH=$(git branch -v 2> /dev/null | sed '/^[^*]/d');
1717
GIT_BRANCH_NAME=$(echo "$GIT_BRANCH" | sed 's/* \([A-Za-z0-9_\-]*\).*/\1/');
1818
GIT_BRANCH_SYNC=$(echo "$GIT_BRANCH" | sed 's/* [^[]*.\([^]]*\).*/\1/');
1919

20-
# Check if master is checked out
21-
if [ "$GIT_BRANCH_NAME" != "master" ]; then
22-
read -p "Git not on master but $GIT_BRANCH_NAME. Continue? (y|N) " yn;
20+
# Check if main is checked out
21+
if [ "$GIT_BRANCH_NAME" != "main" ]; then
22+
read -p "Git not on main but $GIT_BRANCH_NAME. Continue? (y|N) " yn;
2323
if [ "$yn" != "y" ]; then exit 1; fi;
2424
fi;
2525

0 commit comments

Comments
 (0)