From 8c10a357f252ad24fdd33d7f064dcc459875ff20 Mon Sep 17 00:00:00 2001 From: osmarks Date: Sun, 29 Apr 2018 15:42:08 +0100 Subject: [PATCH] Add update-only mode to setup.lua --- setup.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.lua b/setup.lua index 8351ee1..0a68cc9 100644 --- a/setup.lua +++ b/setup.lua @@ -1,3 +1,4 @@ +local argv = {...} local root = "https://osmarks.ml/git/osmarks/dragon/raw/branch/master/" local function download(name, file) @@ -14,6 +15,9 @@ for _, f in pairs(files) do end print "Files downloaded. Either client.lua or server.lua should be run on startup." + +if argv[1] == "update" then os.reboot() end + print "Opening config editor..." shell.run "edit conf" pcall(fs.move, "conf.lua", "conf") -- edit is really stupid, so un-.lua output file