summaryrefslogtreecommitdiffstats
path: root/screwdriver
diff options
context:
space:
mode:
Diffstat (limited to 'screwdriver')
-rwxr-xr-xscrewdriver/publish-unpublished-rpms-to-jfrog-cloud.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
index 4f70668e63e..dd0c953b424 100755
--- a/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
+++ b/screwdriver/publish-unpublished-rpms-to-jfrog-cloud.sh
@@ -60,6 +60,7 @@ echo "RPMs missing on JFrog Cloud:"
ls -lh *.rpm
echo
+UPLOAD_FAILED=false
if [[ -n $SCREWDRIVER ]] && [[ -z $SD_PULL_REQUEST ]]; then
for rpm in $(ls *.rpm); do
echo "Uploading $rpm ..."
@@ -73,7 +74,7 @@ if [[ -n $SCREWDRIVER ]] && [[ -z $SD_PULL_REQUEST ]]; then
echo
fi
-if [[ -n $UPLOAD_FAILED ]]; then
+if $UPLOAD_FAILED; then
echo "Some RPMs failed to upload"
exit 1
fi