Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = {...}
- if #tArgs ~= 2 then
- term.setTextColor(colors.red)
- print("usage: update.lua <pastebin code> <filename>")
- term.setTextColor(colors.white)
- else
- local code = tArgs{1}
- local password = tArgs{2}
- local root = shell.resolve("")
- if fs.exists(root.."/"..filename) then fs.delete(root.."/"..filename) end
- shell.run("pastebin","get",code,filename)
- shell.run(filename)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement