From bee308e417fb0fc9d8013bf62a574bb7b54d4644 Mon Sep 17 00:00:00 2001 From: Olav Bakke Svendsen Date: Wed, 15 May 2024 19:00:57 +0200 Subject: [PATCH] common/install.lua --- common/install.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.30.2