Alexandrov01

GlassChat 3 Client Pastebin Updater/Installer

Mar 22nd, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. -- GlassChat 3 Client Pastebin Updater/Installer
  2. -- By Tiiger87 and Alexandrov01
  3. getfile = http.get("https://raw.github.com/lesander/GlassChat3/master/client/update.lua")
  4. print("Got update file from github...")
  5. file = fs.open("temp-update", "w")
  6.     file.write( getfile.readAll() )
  7. file.close()
  8. print("Created temp file...")
  9. print("Running temp file...")
  10. shell.run("temp-update")
  11. sleep(1)
  12. shell.run("rm", "temp-update")
  13. print("Temp file removed. Now rebooting...")
  14. sleep(3)
  15. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment