aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schwede <cschwede@redhat.com>2016-12-01 15:15:22 +0100
committerChristian Schwede <cschwede@redhat.com>2016-12-02 16:10:52 +0000
commitf7e8a043d92bdf759768d9cded62130425af6f64 (patch)
tree35c883c22f1c2250df8b21d6b24ee28d6b9dd6aa
parentea3ace78398015578de77be5a782dfa6176decb7 (diff)
Fix bug when using multiple DeployArtifactURLs
The script tries to download all artifact URLs with a single request, instead of downloading each URL on its own if multiple DeployArtifactURLs were given. Change-Id: I6a8be699aff7023a67702bb1d3ddc2273984cd08
-rw-r--r--puppet/deploy-artifacts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/deploy-artifacts.sh b/puppet/deploy-artifacts.sh
index 8bcbbf4c..4e1ad89f 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 --globoff -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