From e9cbde324136adbfbbcbbd145b4eed85537dd193 Mon Sep 17 00:00:00 2001 From: Fabian Godehardt Date: Fri, 14 Sep 2012 10:15:44 +0200 Subject: [PATCH] local/e2-new-source.lua: make sure curl can return an error value on file download Signed-off-by: Fabian Godehardt --- local/e2-new-source.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5