Message ID | 20200529143616.2217218-4-alberto.milone@canonical.com |
---|---|
State | New |
Headers | show |
Series | Add signed modules for the new NVIDIA -server drivers | expand |
diff --git a/debian/scripts/file-downloader b/debian/scripts/file-downloader index 46ae96237205..1eb49339fd4d 100755 --- a/debian/scripts/file-downloader +++ b/debian/scripts/file-downloader @@ -20,7 +20,7 @@ do echo "II: $what $url" - curl --silent --show-error "$url" -o "$to" -D "$to.hdr" || exit 1 + curl --fail --silent --show-error "$url" -o "$to" -D "$to.hdr" || exit 1 redirect=$(awk '/^Location: / {gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2); print $2;}' "$to.hdr") [ -z "$redirect" ] && break what=' following'