Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local files = { };
- if fs.exists("tr") then
- table.insert(files, "tr");
- end
- if fs.exists("lib_turtle_0.2.4") then
- table.insert(files, "lib_turtle_0.2.4");
- end
- if fs.exists("lib_log") then
- table.insert(files, "lib_log");
- end
- if 0 < #files then
- for _, val in ipairs(files) do
- print(val);
- end
- print(tostring(#files) .. " file(s) exists.");
- print("overwrite? (y/n)");
- local ch = read();
- if ch ~= "y" then
- print("Installation was canceled.");
- return;
- end
- for _, val in ipairs(files) do
- fs.delete(val);
- end
- end
- print("Installing...");
- shell.run("pastebin get vMFb2Ske lib_log");
- shell.run("pastebin get p9r13ik2 lib_turtle_0.2.4");
- shell.run("pastebin get nCNwCJp0 tr");
- print("Installation was completed.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement