Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function downloadFile(url, file)
- http.request(url)
- event, eUrl, content = os.pullEvent()
- if event == "http_success" then
- body = content.readAll()
- file = fs.open(file, "w")
- file.write(body)
- file.flush()
- file.close()
- end
- end
- downloadFile("raw github link here","startup")
- shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement