download.pl: fix detecting download errors with curl
authorFelix Fietkau <nbd@nbd.name>
Tue, 31 Jan 2017 10:22:21 +0000 (11:22 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 31 Jan 2017 10:25:18 +0000 (11:25 +0100)
commit76f1b9457d88b9ae2f0f578c10c4155c23c03c24
tree6d0e9b565505d3c1eb0ffa3c20c4dcd9f2660c19
parentbda982b97fae6073ab65c05c1c47bb5f71f8dccf
download.pl: fix detecting download errors with curl

Avoid treating error pages as successfully downloaded content

Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/download.pl