Compare commits
No commits in common. "59c9c151ce1f0d7c6be4661c6b382f92c9509e84" and "8e18e26e47817569ed67e841bd8bba7e550e68b4" have entirely different histories.
59c9c151ce
...
8e18e26e47
2 changed files with 1 additions and 36 deletions
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
@ -1,7 +1,3 @@
|
|||
{
|
||||
"deno.enable": true,
|
||||
"Lua.diagnostics.globals": [
|
||||
"fs",
|
||||
"http"
|
||||
]
|
||||
"deno.enable": true
|
||||
}
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
os.run = os.run
|
||||
os.sleep = os.sleep
|
||||
|
||||
function table.slice(tbl, first, last)
|
||||
local result = {}
|
||||
for i = first or 1, last or #tbl do
|
||||
result[#result + 1] = tbl[i]
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
local program = ...
|
||||
local args = table.slice(arg, 1)
|
||||
|
||||
local function main()
|
||||
if program == nil then
|
||||
print("Usage: autorun <program> [...args]")
|
||||
return
|
||||
end
|
||||
|
||||
local i = 0
|
||||
while true do
|
||||
i = i + 1
|
||||
os.run({}, "/update", program)
|
||||
os.run({}, program, table.unpack(args))
|
||||
print("autorun", i)
|
||||
os.sleep(1)
|
||||
end
|
||||
end
|
||||
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue