Skip to content

Commit

Permalink
Update prepublish safeguard script.
Browse files Browse the repository at this point in the history
  • Loading branch information
twisty committed Mar 18, 2019
1 parent fe58539 commit 9e78738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/prepublish.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
echo "Switch to master branch before publishing.";
if [[ $(git rev-parse --abbrev-ref HEAD) != "release-1.x" ]]; then
echo "Switch to release-1.x branch before publishing.";
exit 1;
fi

Expand Down

0 comments on commit 9e78738

Please sign in to comment.