From 26abc601db61a18a02adb387f9f0958dca2f2c4f Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 5 Aug 2022 13:52:10 +0100 Subject: pm --- pm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm.lua b/pm.lua index c710769..abeb056 100644 --- a/pm.lua +++ b/pm.lua @@ -95,7 +95,7 @@ local function dlfile(filename) print("creating directory "..dir) fs.makeDir(dir) end - local file,err=fs.open(dest,"w") + local file,err=fs.open(dest,"wb") if err then error("fs.open "..err) end local res,err = http.get{url=src,binary=true} if err then error("http.get "..err) end -- cgit v1.2.3