SHOW:
|
|
- or go back to the newest paste.
1 | - | local response = http.get( "https://raw.github.com/SuicidalSTDz/EnderAPI/master/launcher.lua" ) |
1 | + | local response = http.get( "https://raw.github.com/SuicidalSTDz/EnderAPI/test/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 |