From f8951059a1b792e2082259a0e480958b363ff451 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Mon, 12 Sep 2011 16:22:01 -0700 Subject: [PATCH] only display virtualenv relocatable output on error --- bin/compile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/compile b/bin/compile index 1512838..3aee587 100755 --- a/bin/compile +++ b/bin/compile @@ -72,8 +72,12 @@ 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/^/ /' -echo "-----> Making virtualenv relocatable" -virtualenv --relocatable . | sed -u 's/^/ /' +OUT=$(virtualenv --relocatable .) +[ $? -ne 0 ] && { + echo " ! Error making virtualenv relocatable" + echo "$OUT" | sed -u 's/^/ /' + exit 1 +} # store new artifacts in cache for dir in $VIRTUALENV_DIRS; do