bootstrap.sh: allow overring the tag to checkout by setting the TAG environment variable (helpful for debugging)

This commit is contained in:
Joshua Tauberer 2014-08-25 08:18:46 -04:00
parent faf6f87a63
commit bf5016a8ac
1 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,9 @@
#
#########################################################
TAG=14.08-beta
if [ -z "$TAG" ]; then
TAG=14.08-beta
fi
# Are we running as root?
if [[ $EUID -ne 0 ]]; then
@ -27,7 +29,7 @@ if [ ! -d mailinabox ]; then
# If it does exist, update it.
else
echo Updating Mail-in-a-Box . . .
echo Updating Mail-in-a-Box to $TAG . . .
cd mailinabox
git fetch
if ! git checkout -q $TAG; then