diff --git a/bin/steps/pip-install b/bin/steps/pip-install
index 6ef55b4daba33ffc396eda0f516c053f71f55b38..036de4b2d5e21228cf7928e895b492c203c62a19 100755
--- a/bin/steps/pip-install
+++ b/bin/steps/pip-install
@@ -6,7 +6,7 @@ puts-step "Installing dependencies with pip"
 
 set +e
 /app/.heroku/python/bin/pip install -r requirements.txt --exists-action=w --src=./.heroku/src --allow-all-external --disable-pip-version-check --no-cache-dir | cleanup | log-output | indent
-PIP_STATUS="$?"
+PIP_STATUS="${PIPESTATUS[0]}"
 set -e
 
 echo "$PIP_STATUS"