Skip to content

Commit 1f1832b

Browse files
jimisjujokini
authored andcommitted
Fix for DownloadURL to try alternative URL
Change-Id: I7e9a77815ef8f4c258dda44bda6fdd4eb3736ef4 Reviewed-by: Heikki Halmet <[email protected]> (cherry picked from commit 518e114)
1 parent 2217a2d commit 1f1832b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coin/provisioning/common/unix/DownloadURL.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ DownloadURL () {
9999
if ! Download "$url" "$targetFile"
100100
then
101101
echo "FAIL! to download, trying alternative URL: $url2" 1>&2
102-
if ! Download "$url" "$targetFile"
102+
if ! Download "$url2" "$targetFile"
103103
then
104-
echo 'FAIL! to download even from alternative url' 1>&2
104+
echo 'FAIL! to download even from alternative URL' 1>&2
105105
return 1
106106
fi
107107
fi

0 commit comments

Comments
 (0)