summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-31 11:22:21 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-31 11:25:18 +0100
commit76f1b9457d88b9ae2f0f578c10c4155c23c03c24 (patch)
tree6d0e9b565505d3c1eb0ffa3c20c4dcd9f2660c19 /scripts
parentbda982b97fae6073ab65c05c1c47bb5f71f8dccf (diff)
downloadmtk-20170518-76f1b9457d88b9ae2f0f578c10c4155c23c03c24.zip
mtk-20170518-76f1b9457d88b9ae2f0f578c10c4155c23c03c24.tar.gz
mtk-20170518-76f1b9457d88b9ae2f0f578c10c4155c23c03c24.tar.bz2
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-xscripts/download.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download.pl b/scripts/download.pl
index 0398c56..7eb7c7e 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)
;
}