diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh
index 5da571c92920090c1e379e7913ba49f613feda0b..0f91e4bef1c6a2615554b2112da8dae9dedb72e1 100755
--- a/gitlab/deploy.sh
+++ b/gitlab/deploy.sh
@@ -16,11 +16,7 @@ if [ "${VISIBILITY}" != "public" ]; then
 fi
 
 log_info "Creating source distribution..."
-run_cmd $(PREFIX)/bin/python setup.py check sdist --formats zip
-if [ $? != 0 ]; then
-  log_error "Could not create source distribution zip file"
-  exit 1
-fi
+run_cmd ${PREFIX}/bin/python setup.py check sdist --formats zip
 
 log_info "Uploading package to ${PYPISERVER} on behalf of ${PYPIUSER}..."
 twine register --username ${PYPIUSER} --password ${PYPIPASS} dist/*.zip