diff --git a/bin/steps/pip-install b/bin/steps/pip-install
index fd60ae9ce7ba6fe8129260ebdf5888172fa9f0d3..cec8c986ae976c5fbd1e8c7aec9eadc977ad5beb 100755
--- a/bin/steps/pip-install
+++ b/bin/steps/pip-install
@@ -11,7 +11,7 @@ PIP_STATUS="$?"
 
 echo "$PIP_STATUS"
 
-if [[ $PIP_STATUS ]]; then
+if [[ ! $PIP_STATUS -eq 0 ]]; then
     echo "an error occurred."
     show-warnings
     exit 1