summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2019-10-11 11:30:38 +0200
committerJukka Jokiniva <jukka.jokiniva@qt.io>2019-11-20 12:35:26 +0200
commit1f1832b5da305ccc5b863ebb6264af0766e91071 (patch)
tree4576999fa6b20731a6acfc1be012c4c4cc059d9a
parent2217a2db89be1b74849585f6ad14a7212d35e0f2 (diff)
Fix for DownloadURL to try alternative URL
Change-Id: I7e9a77815ef8f4c258dda44bda6fdd4eb3736ef4 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io> (cherry picked from commit 518e114dc71fb58d175a15afb282ac7f6dff6adc)
-rwxr-xr-xcoin/provisioning/common/unix/DownloadURL.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/coin/provisioning/common/unix/DownloadURL.sh b/coin/provisioning/common/unix/DownloadURL.sh
index 0579451f..ac1fd971 100755
--- a/coin/provisioning/common/unix/DownloadURL.sh
+++ b/coin/provisioning/common/unix/DownloadURL.sh
@@ -99,9 +99,9 @@ DownloadURL () {
if ! Download "$url" "$targetFile"
then
echo "FAIL! to download, trying alternative URL: $url2" 1>&2
- if ! Download "$url" "$targetFile"
+ if ! Download "$url2" "$targetFile"
then
- echo 'FAIL! to download even from alternative url' 1>&2
+ echo 'FAIL! to download even from alternative URL' 1>&2
return 1
fi
fi