Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local programName = "smeltery";
- local programPasteURL = "HE0Kgjns";
- local autoRun = true;
- local onDisk = true;
- local updateName = "update";
- local selfURL = "4kW55vCZ";
- local selfUpdate = true;
- if onDisk == true then
- programName = "disk/" .. programName;
- end
- local function update()
- --fs.delete(updateName);
- print("Deleting "..programName.."...");
- fs.delete(programName);
- print("Downloading "..programName.." from pastebin.com/"..programPasteURL.."...");
- shell.run("pastebin get "..programPasteURL.." "..programName);
- end
- print("Updating "..programName);
- update();
- print("Update complete!");
- if autoRun then
- shell.run(programName);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement