Alexandrov01

GuiKit Pastebin Updater/Installer

May 17th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. -- GuiKit Pastebin Updater/Installer
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. if term.isColor() == true then
  5.   term.setTextColor(colors.gold)
  6. end
  7. print("GuiKit Updater/Installer")
  8. if term.isColor() == true then
  9.   term.setTextColor(colors.white)
  10. end
  11. getfile = http.get("https://raw.github.com/AxTo/Kit/master/dist/guiKit.lua")
  12. print("   Downloaded latest GuiKit build from GitHub.")
  13. file = fs.open("guiKit", "w")
  14.   file.write(getfile.readAll())
  15. file.close()
  16. print("   Saved file.")
  17. print("   Done!")
  18. print("Press ENTER to continue...")
  19. x = read()
  20. print("Rebooting!")
  21. sleep(1)
  22. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment