9 if [ -n "$artifact_urls" ]; then
10 for URL in $(echo $artifact_urls | sed -e "s| |\n|g" | sort -u); do
11 curl --globoff -o $TMP_DATA/file_data "$URL"
12 if file -b $TMP_DATA/file_data | grep RPM &>/dev/null; then
13 yum install -y $TMP_DATA/file_data
14 elif file -b $TMP_DATA/file_data | grep 'gzip compressed data' &>/dev/null; then
16 tar xvzf $TMP_DATA/file_data
19 echo "ERROR: Unsupported file format: $URL"
22 rm $TMP_DATA/file_data
25 echo "No artifact_urls was set. Skipping..."