Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local response = http.get( "https://raw.github.com/SuicidalSTDz/EnderAPI/master/launcher.lua" )
- if response then
- local sResponse = response.readAll()
- response.close()
- local sRunning = shell.getRunningProgram()
- fs.delete( sRunning )
- local handle = io.open( sRunning, "w" )
- handle:write( sResponse )
- handle:close()
- shell.run( sRunning )
- else
- error( "Error connecting to Github, please try again later", 2 )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement