From 4bc58f607f1117caeeb08dc7d2fef21806f26b55 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Mon, 12 Sep 2011 16:35:43 -0700 Subject: [PATCH] turn off immediate exit on error to allow displaying error reason --- bin/compile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/compile b/bin/compile index 4895cb6..ba5f543 100755 --- a/bin/compile +++ b/bin/compile @@ -71,12 +71,14 @@ fi echo "-----> Installing dependencies using pip version $(bin/pip --version | awk '{print $2}')" PIP_DOWNLOAD_CACHE=$PIP_DOWNLOAD_CACHE bin/pip install --use-mirrors -r requirements.txt | sed -u 's/^/ /' +set +e OUT=$(virtualenv --relocatable .) [ $? -ne 0 ] && { echo " ! Error making virtualenv relocatable" echo "$OUT" | sed -u 's/^/ /' exit 1 } +set -e # store new artifacts in cache for dir in $VIRTUALENV_DIRS; do