X603

ftp installer

Feb 18th, 2020 (edited)
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. -- pastebin run Pyu19FFw
  2. while true do
  3.     term.clear()
  4.     term.setCursorPos(1,1)
  5.     print("install client - 1")
  6.     print("install server - 2")
  7.     print("quit           - 3")
  8.     term.write(">>")
  9.     key = io.read()
  10.     if key == "1" then
  11.         shell.run("delete ftp.lua")
  12.         shell.run("pastebin get 05ZYcrGQ ftp.lua")
  13.         term.clear()
  14.         break
  15.     elseif key == "2" then
  16.         shell.run("delete ftpServer.lua")
  17.         shell.run("pastebin get K5k6vFEy ftpUpdate.lua")
  18.         shell.run("pastebin get zVwn5N91 ftpServer.lua")
  19.         term.clear()
  20.         break
  21.     elseif key == "3" then
  22.         term.clear()
  23.         break
  24.     end
  25. end
  26. term.clear()
Add Comment
Please, Sign In to add comment