Posted 14 February 2012 - 08:48 PM
I'm getting the error in the title with this code:
Any fix?
function get(program)
shell.run('cc-get', 'install', program)
end
function c()
term.clear()
term.setCursorPos(1, 1)
end
function sp(text)
textutils.slowPrint(text)
end
function getVersion()
return "0.1"
end
function p(text)
print(text)
end
c()
sp("RocInstall " ..getVersion())
sleep(1)
c()
p("(1) Install\n(2) About\n(3) Instructions\n(4) Exit")
e, a = os.pullEvent()
if e == "key" and a == 2 then
c()
sp("Program Name: ")
name = read()
get(name)
fs.copy("bin/"..name, "RI")
sp(name.. " was installed to directory RI.")
end
Any fix?