Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- installs the cc door system
- print("installing github cloner");
- shell.run("pastebin run p8PJVxC4");
- sleep(3);
- print("creating install/update script");
- local file = fs.open("/install", "w");
- local repoName = "";
- print("'keypad' or 'door'?");
- local version = read();
- if version == "keypad" then
- repoName = "computercraftDoorSystem-keypad";
- elseif version == "door" then
- repoName = "computercraftDoorSystem-door";
- else
- print("invalid version!");
- return;
- end
- file.writeLine("shell.run(\"github clone iMajesticButter/" .. repoName .. " -b main ./\")");
- print("enter startup script name");
- local startName = read();
- file.writeLine("print(\"updating startup script\")");
- file.writeLine("fs.delete(\"/startup\")");
- file.writeLine("fs.copy(\"/" .. startName .. "\", \"/startup\")");
- file.writeLine("fs.delete(\"/" .. startName .. "\")");
- file.writeLine("shell.run(\"reboot\")");
- file.close();
- print("running install script");
- shell.run("/install");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement