only allow "forward" patches & exit 1 if virtualenv isn't found

This commit is contained in:
kytv
2013-09-01 00:05:24 +00:00
parent 8059c7fdcf
commit ef592ad995

View File

@ -4,6 +4,7 @@ set -e
if [ ! $venv ]; then
echo "ERROR: virtualenv not found!" >&2
exit 1
else
if [ ! -d $venv_dir ] ; then
$venv --distribute $venv_dir
@ -12,5 +13,5 @@ else
. $venv_dir/bin/activate
pip install -r etc/reqs.txt
# Apply multi-domain patch to Flask-Babel
patch -p0 <etc/multi-domain.patch
patch -p0 -N -r - <etc/multi-domain.patch
fi