Skip to content

Commit

Permalink
Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Aug 29, 2023
1 parent e971255 commit 4cd6ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ set -e

# Check if on master
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" != "master" ]]; then
echo 'Must be on master branch to cut a release!';
if [[ "$BRANCH" != "main" ]]; then
echo 'Must be on main branch to cut a release!';
exit 1;
fi

# Check if master is dirty
if [[ -n $(git status -s) ]]; then
echo 'Master branch dirty! Aborting.';
echo 'main branch dirty! Aborting.';
exit 1;
fi

Expand Down

0 comments on commit 4cd6ce7

Please sign in to comment.