Advertisement
SuicidalSTDz

EnderAPI Installer

Mar 16th, 2014
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local response = http.get( "https://raw.github.com/SuicidalSTDz/EnderAPI/master/launcher.lua" )
  2. if response then
  3.   local sResponse = response.readAll()
  4.   response.close()
  5.  
  6.   local sRunning = shell.getRunningProgram()
  7.   fs.delete( sRunning )
  8.   local handle = io.open( sRunning, "w" )
  9.   handle:write( sResponse )
  10.   handle:close()
  11.   shell.run( sRunning )
  12. else
  13.   error( "Error connecting to Github, please try again later", 2 )
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement