From: Fabian Godehardt Date: Fri, 14 Sep 2012 08:15:44 +0000 (+0200) Subject: local/e2-new-source.lua: make sure curl can return an error value on file download X-Git-Tag: e2factory-2.3.13rc1~79 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=e9cbde324136adbfbbcbbd145b4eed85537dd193;p=e2factory.git local/e2-new-source.lua: make sure curl can return an error value on file download Signed-off-by: Fabian Godehardt --- diff --git a/local/e2-new-source.lua b/local/e2-new-source.lua index bad6fb1..fc98ceb 100644 --- a/local/e2-new-source.lua +++ b/local/e2-new-source.lua @@ -134,7 +134,7 @@ end local function download(f) local name = e2lib.basename(f) - local cmd = string.format("curl --silent --fail %s > %s", + local cmd = string.format("curl --silent --fail %s --output %s", e2lib.shquote(f), e2lib.shquote(name)) local rc = e2lib.callcmd_capture(cmd) if rc ~= 0 then