Advertisement
qwertz19281

[ComputerCraft] qwgps updater

Aug 25th, 2016
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. --qwgps updater
  2. --run: pastebin run zXHTPs9G
  3. if(fs.exists("qwgps")) then
  4.     if(fs.exists("qwgps_backup")) then
  5.         fs.delete("qwgps_backup")
  6.     end
  7.     pcall(os.unloadAPI,"qwgps")
  8.     fs.move("qwgps","qwgps_backup")
  9. else
  10.     pcall(os.unloadAPI,"qwgps")
  11. end
  12. shell.run("pastebin","get","VuP5rJ4k","qwgps")
  13. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement