Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This program downloads my 'Table Explorer' program from Github
- -- View it on Github here:
- -- https://github.com/hpwebcamABLE/Table-Explorer
- local fileName = "te"
- local fullName = "Table Explorer"
- local url = [[https://raw.githubusercontent.com/hpwebcamABLE/Table-Explorer/master/Table%20Explorer]]
- if not http then
- printError("HTTP must be enabled!") return
- end
- local response = http.get(url)
- if not response then
- printError("No response from github!") return
- end
- local f = fs.open(fileName,"w")
- if not f then
- printError("Unable to open file!") return
- end
- f.write( response.readAll() )
- f.close()
- if term.isColor() then term.setTextColor(colors.lime) end
- print(fullName .. " has been installed!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement