From 8346354d1ea1ca946b75558ba688e65eda26549c Mon Sep 17 00:00:00 2001 From: osmarks Date: Thu, 26 Jul 2018 11:00:42 +0100 Subject: [PATCH] Make installer dependency-free --- installer.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installer.lua b/installer.lua index 9bf4d46..0013745 100644 --- a/installer.lua +++ b/installer.lua @@ -1,16 +1,13 @@ -local d = require "luadash" or _ - local wyvern_files = { root = "https://osmarks.tk/git/osmarks/wyvern/raw/branch/master/", files = { "installer.lua", "luadash.lua", "lib.lua" } } local args = {...} -local command = args[1] -- native luadash head is broken -local params = d.tail(args) +local command = args[1] local function download_group(g) - d.map(g.files, function(file) + for _, file in pairs(g.files) do local url = g.root .. file local h = http.get(url) local contents = h.readAll() @@ -18,7 +15,7 @@ local function download_group(g) f.write(contents) f.close() print("Written", file, "from", url) - end) + end end local function prompt(msg)