]> git.e2factory.org Git - e2factory.git/commitdiff
local/e2-new-source.lua: make sure curl can return an error value on file download
authorFabian Godehardt <fg@emlix.com>
Fri, 14 Sep 2012 08:15:44 +0000 (10:15 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:12 +0000 (19:07 +0100)
Signed-off-by: Fabian Godehardt <fg@emlix.com>
local/e2-new-source.lua

index bad6fb1e4dd719f507a088d2634654155792dbbf..fc98ceb0fb80ee6d3bcd9efeaabf8e55deef94a9 100644 (file)
@@ -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