Skip to content

Commit

Permalink
refactor(dev-infra): replace references to master with main
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingfishflash committed Apr 11, 2022
1 parent c182703 commit 1ec0d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function check_remote_up_to_date() {

function process_semver() {
log_ "current git branch: $(git branch | grep '*' | awk '{print $2}')"
git branch | grep '\* master' >/dev/null || error "not on master branch"
git branch | grep '\* main' >/dev/null || error "not on main branch"

if output=$(git status --porcelain) && [ "$output" ]; then
#log_ "working directory isn't clean, commit any changes"
Expand All @@ -75,7 +75,7 @@ function process_semver() {
log_ "working directory is clean"

for o in $(git remote -v | grep fetch | cut -f 1 -); do
check_remote_up_to_date "${o}" master
check_remote_up_to_date "${o}" main
done
[ $remotes_up_to_date -eq 1 ] || error "some remotes aren't up to date with the local branch"

Expand Down

0 comments on commit 1ec0d5e

Please sign in to comment.