Okay nutcase look at the code please… You'll then agree with me!
Improvements:
shell.run("clear")
print("thanks for choosing 'os name'")
sleep(1)
fs.delete("test")
fs.delete("test")
fs.delete("test")
fs.delete("test")
fs.copy("disk/test","test")
fs.copy("disk/os","startup")
fs.copy("disk/test1","test1")
fs.copy("disk/test2","test2")
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
term.write("-")
sleep(0.3)
print("-")
print("installed")
sleep(1)
print("programs has been installed.")
print("Shutting down the terminal.")
disk.eject("top")
disk.eject("bottom")
disk.eject("left")
disk.eject("right")
disk.eject("back")
disk.eject("front")
sleep(2)
shell.run("shutdown")
1. Use
term.clear() instead of
shell.run("clear") never heard of
shell.run("clear") unless the owner has a program named as such on their PC
2. WTF do we need to do
fs.delete("test") 4 times?!
3. Get rid of the installing progress bar, i wouldn't wanna wait…
4. Wtf you got to shutdown the PC after?
5. Adding some simple GUI couldn't do any harm…
6. Asking for user input so they dont have to edit the code if they want to use your program you can automaticlly do that through their input, eg
write("Side of the disk bay: ")
side = read()
disk.eject(side)
you could do this with the name of the files etc….