diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-31 11:22:21 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-31 11:24:19 +0100 |
commit | 74c09e714ea36f3d463e0974cd56c32f752a0ad1 (patch) | |
tree | 1d181ce55c830d6c9745952b6e98757517486c01 /scripts | |
parent | 6b0b526a4fc11d3b1b588d5b3b789da0c66adce9 (diff) | |
download | upstream-74c09e714ea36f3d463e0974cd56c32f752a0ad1.tar.gz upstream-74c09e714ea36f3d463e0974cd56c32f752a0ad1.tar.bz2 upstream-74c09e714ea36f3d463e0974cd56c32f752a0ad1.zip |
download.pl: fix detecting download errors with curl
Avoid treating error pages as successfully downloaded content
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/download.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download.pl b/scripts/download.pl index 0398c564ef..7eb7c7ebce 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -82,7 +82,7 @@ sub download_cmd($) { } return $have_curl - ? (qw(curl --connect-timeout 20 --retry 5 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url) + ? (qw(curl -f --connect-timeout 20 --retry 5 --location --insecure), shellwords($ENV{CURL_OPTIONS} || ''), $url) : (qw(wget --tries=5 --timeout=20 --no-check-certificate --output-document=-), shellwords($ENV{WGET_OPTIONS} || ''), $url) ; } |