OpenComputerScripts/grab_installer.lua
Kiritow e56d093ccf Grab v2.4.10.13-alpha
Installer now receives Grab commandline options.
2019-01-17 20:13:53 +08:00

13 lines
436 B
Lua

local function grab_installer(info)
print("Thank you for installing Grab - The official OpenComputerScripts Installer.")
print("Installer Loaded by: " .. info.version)
if(info.grab_options and info.grab_options["cn"]) then
print("China mirror detected.")
os.execute("grab update --cn")
else
os.execute("grab update")
end
print("Programs info has been updated.")
end
return grab_installer