allow releases from non-master branch, if the person knows what he does

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-01-20 14:40:54 +01:00
parent f7c4437873
commit e40fde92fc

View file

@ -207,7 +207,13 @@ eof
# Ensure we are on the master branch # Ensure we are on the master branch
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then
echo "Releases are happening from the master branch, aborting" echo "Releases are happening from the master branch, aborting"
exit 1
echo "Enter the magic word to release anyway"
read magicword
if [ "$magicword" != "iknowwhatido" ]; then
exit 1
fi
fi fi
# Ensure version branch exists # Ensure version branch exists