local files = { }; if fs.exists("quickMiner") then table.insert(files, "quickMiner") end if fs.exists("beacon") then table.insert(files, "beacon") 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 RjsxGDTF quickMiner") shell.run("pastebin get hjGie0QG beacon") print("Installation was completed.")