2023-11-22 23:06:03 +01:00

18 lines
367 B
Lua

-- vi: ft=lua
-- utility to download files from the git repo
local function printUsage()
print("Usage:")
print("get <filename>")
end
local args = { ... }
if #args < 1 then
printUsage()
return
end
local file = args[1]
shell.run("rm", file)
shell.run("wget", "https://git.navidsassan.ch/navid.sassan/computercraft/raw/branch/master/" .. file, file)