Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Add IGNORE_BRANCH to allow release-version to be run on the 'wrong' b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
ianb committed Apr 6, 2017
1 parent f6fb476 commit ec4fd0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/release-version
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ case "$channel" in
echo "Next step: upload build/eb-app-latest.zip to http://amzn.to/1NuC3N9"
;;
stage)
if [[ "$(current_branch)" != "stable" ]] ; then
if [[ "$(current_branch)" != "stable" ]] && [[ -z "$IGNORE_BRANCH" ]] ; then
echo "Error: you should be on the stable branch when releasing stage"
echo " git checkout stable ; git pull"
echo "To proceed anyway use:"
echo " IGNORE_BRANCH=1 $(basename $0) stage"
exit 4
fi
rm -f build/screenshots.zip
Expand Down

0 comments on commit ec4fd0b

Please # to comment.