Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("rm *")
- pastebinLinks={
- {link="VGx88h7f",name="startup.lua"},
- {link="fQNxsiqw",name="salt.lua"}
- }
- currCommand=""
- currIndex=1
- function downloadFile()
- print("Downloading "..currIndex.."/"..#pastebinLinks)
- print("rm "..currCommand.name)
- shell.run("rm "..currCommand.name)
- while #fs.find(currCommand.name)==0 do
- print("pastebin get "..currCommand.link.." "..currCommand.name)
- shell.run("pastebin get "..currCommand.link.." "..currCommand.name)
- end
- end
- for i,v in ipairs(pastebinLinks) do
- currIndex=i
- currCommand=v
- local success = false
- while not success do
- success, err = pcall(downloadFile)
- print(success)
- if not success then
- sleep(1)
- end
- end
- sleep(0.25)
- end
- shell.run("startup.lua")
Advertisement
Add Comment
Please, Sign In to add comment