Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- sleep(1)
- http.request("http://pastebin.com/raw.php?i=cakvRYin")
- requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == "http_success" then
- respondedText = sourceText.readAll()
- fs.delete("install.lua")
- file = fs.open("install.lua", "w")
- file.write(respondedText)
- file.close()
- requesting = false
- term.write("Installed!")
- else
- requesting = false
- end
- end
- if tArgs[1] ~= nil then
- if tArgs[1] == "all" then
- shell.run("install all")
- end
- else
- shell.run("install update")
- print(" Updated!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement