From: Olav Bakke Svendsen Date: Wed, 15 May 2024 17:00:57 +0000 (+0200) Subject: common/install.lua X-Git-Tag: skystone~10 X-Git-Url: http://git.olavbs.no/?a=commitdiff_plain;h=bee308e417fb0fc9d8013bf62a574bb7b54d4644;p=cc.git common/install.lua --- diff --git a/common/install.lua b/common/install.lua index 0fe416c..08934f1 100644 --- a/common/install.lua +++ b/common/install.lua @@ -2,10 +2,11 @@ -- looks for package-file in git repo and runs dl.lua on every line -- usage: -- install repo:[tag] remote/path - +local args = {...} local tmp = textutils.serialize(math.random(100000,999999)) shell.run("dl "..args[1].." "..args[2].."/package:"..tmp) -for line in lines(tmp) do +local file = fs.open(tmp, "r") +for line in file.readLine do shell.run("dl "..line) end fs.delete(tmp)