Advertisement
jordyvl

VLWARE-OS Updater

Nov 25th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. if not http then printError("HTTP not enabled") return end
  2. local remote = http.get("https://raw.github.com/jordyvl/VLWARE-OS/master/src/vlware/update.lua")
  3. if not remote then return end
  4. local file = fs.open(".update", "w") file.write(remote.readAll()) file.close() remote.close() shell.run("/.update")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement