# Returns a latest msvsphere-repos RPM package download URL.
# Returns a latest msvsphere-repos RPM package download URL.
@ -386,7 +386,7 @@ install_rpm_pubkey() {
download_release_files(){
download_release_files(){
local -r tmp_dir="${1}"
local -r tmp_dir="${1}"
local -r release_url="${2}"
local -r release_url="${2}"
local -r release_path="${tmp_dir}/sphere-release-server-latest.rpm ${tmp_dir}/sphere-release-identity-server-latest.rpm ${tmp_dir}/sphere-release-common-latest.rpm"
local -r release_path="${tmp_dir}/sphere-release-server-latest.rpm ${tmp_dir}/sphere-release-identity-server-latest.rpm ${tmp_dir}/sphere-release-common-latest.rpm${tmp_dir}/sphere-release-latest.rpm"
local output
local output
if ! output=$(for url in ${release_url};do curl -f -s -S -o "${tmp_dir}/$(echo$url| awk -F/ '{ print $NF }'| sed 's@-[0-9].*$@.rpm@')""${url}";done 2>&1);then
if ! output=$(for url in ${release_url};do curl -f -s -S -o "${tmp_dir}/$(echo$url| awk -F/ '{ print $NF }'| sed 's@-[0-9].*$@.rpm@')""${url}";done 2>&1);then