Don't stop the script when the release branch is the current branch.

Simply step aside to the master branch instead.
1 file changed