diff --git a/scripts/artifacts/publish-from-staging.sh b/scripts/artifacts/publish-from-staging.sh index 655acedd3..a1785a7c3 100755 --- a/scripts/artifacts/publish-from-staging.sh +++ b/scripts/artifacts/publish-from-staging.sh @@ -17,5 +17,7 @@ OUTPUT=$(aws s3 cp s3://$ORIGIN s3://$DESTINATION --recursive --profile $AWS_PRO for line in $OUTPUT; do PREFIX=${line%%${DESTINATION}*} SUFFIX=${line:${#PREFIX}} - echo "https://$SUFFIX" + if [[ -n "$SUFFIX" ]]; then + echo "https://$SUFFIX" + fi done