summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-05 13:52:10 +0100
committerubq323 <ubq323@ubq323.website>2022-08-05 13:52:10 +0100
commit26abc601db61a18a02adb387f9f0958dca2f2c4f (patch)
tree5f4aa183427cea4fe3ddc2fdb45c892d2664e8e7
parent3245a8c4bdbde3f42828e2a60ccd840f700c88fe (diff)
pm
-rw-r--r--pm.lua2
1 files changed, 1 insertions, 1 deletions
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