Skip to content

Commit

Permalink
master => main
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Apr 29, 2024
1 parent 15c1b4b commit 6e1f154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ gem_name=httparty
rm -rf $gem_name-*.gem
gem build -q $gem_name.gemspec

# Make sure we're on the master branch.
(git branch | grep -q '* master') || {
echo "Only release from the master branch."
# Make sure we're on the main branch.
(git branch | grep -q '* main') || {
echo "Only release from the main branch."
exit 1
}

Expand All @@ -39,4 +39,4 @@ git fetch -t origin

# Tag it and bag it.
gem push $gem_name-*.gem && git tag "$tag" &&
git push origin master && git push origin "$tag"
git push origin main && git push origin "$tag"

0 comments on commit 6e1f154

Please sign in to comment.