X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=puppet%2Fdeploy-artifacts.sh;h=6e7f0ec174df2a5ef0a9c59529b9e8fef57257b9;hb=f0807b535b0cff5eac82fdaa9719650f79839c15;hp=22fde9a7292b51da551f3c8b3b23b40be9a6dcd0;hpb=31c91bed886f76e107a78021977e4c9bd338c76a;p=apex-tripleo-heat-templates.git diff --git a/puppet/deploy-artifacts.sh b/puppet/deploy-artifacts.sh index 22fde9a7..6e7f0ec1 100644 --- a/puppet/deploy-artifacts.sh +++ b/puppet/deploy-artifacts.sh @@ -8,7 +8,7 @@ trap cleanup EXIT if [ -n "$artifact_urls" ]; then for URL in $(echo $artifact_urls | sed -e "s| |\n|g" | sort -u); do - curl -o $TMP_DATA/file_data "$artifact_urls" + curl --globoff -o $TMP_DATA/file_data "$URL" if file -b $TMP_DATA/file_data | grep RPM &>/dev/null; then yum install -y $TMP_DATA/file_data elif file -b $TMP_DATA/file_data | grep 'gzip compressed data' &>/dev/null; then @@ -16,7 +16,7 @@ if [ -n "$artifact_urls" ]; then tar xvzf $TMP_DATA/file_data popd else - echo "ERROR: Unsupported file format." + echo "ERROR: Unsupported file format: $URL" exit 1 fi rm $TMP_DATA/file_data