Add `L` flag to curl command to follow redirects.
@@ -82,7 +82,7 @@ def download(
# If we download, always do user/group/mode as SSH user may be different
if download:
- curl_command = 'curl -sSf {0} -o {1}'.format(source_url, destination)
+ curl_command = 'curl -sSLf {0} -o {1}'.format(source_url, destination)
wget_command = 'wget -q {0} -O {1} || rm -f {1}; exit 1'.format(
source_url, destination,
)
