Fresh pull from upstream 17.01 branch
[librecmc/librecmc.git] / scripts / download.pl
index 21b63f125666b013120be26193a2153f88c5ad54..de6bc59faf6e630bdadfb8820bed0e095a03a238 100755 (executable)
@@ -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)
        ;
 }
@@ -266,7 +266,7 @@ foreach my $mirror (@ARGV) {
 }
 
 #push @mirrors, 'http://mirror1.openwrt.org';
-push @mirrors, 'https://librecmc.org/librecmc/downloads/sources/v1.4/';
+push @mirrors, 'https://librecmc.org/librecmc/downloads/sources/v1.4';
 push @mirrors, 'http://sources.lede-project.org';
 push @mirrors, 'http://mirror2.openwrt.org/sources';
 push @mirrors, 'http://downloads.openwrt.org/sources';