diff --git a/scripts/full-release.sh b/scripts/full-release.sh index e95be6d..7339292 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -30,6 +30,15 @@ while [[ $# -gt 0 ]]; do esac done +current_branch=$(git rev-parse --abbrev-ref HEAD) + +if [[ "$current_branch" != "master" ]]; then + echo "You must be on the master branch to run this script" + exit 1 +fi + +git pull + echo """ This will do everything needed to release a new version: - bump the version number