Update sPhone.lua
This commit is contained in:
parent
edeb545814
commit
3a2b36690d
1 changed files with 10 additions and 0 deletions
|
@ -52,9 +52,19 @@ local function recovery()
|
||||||
while true do
|
while true do
|
||||||
local _, k = os.pullEvent("key")
|
local _, k = os.pullEvent("key")
|
||||||
if k == 2 then
|
if k == 2 then
|
||||||
|
term.setBackgroundColor(colors.black)
|
||||||
|
term.setTextColor(colors.white)
|
||||||
for k, v in pairs(fs.list("/")) do
|
for k, v in pairs(fs.list("/")) do
|
||||||
if not fs.isReadOnly(v) then
|
if not fs.isReadOnly(v) then
|
||||||
|
if fs.isDir(v) then
|
||||||
|
shell.setDir(v)
|
||||||
|
for k, v in pairs(fs.list("/"..v)) do
|
||||||
|
fs.delete(v)
|
||||||
|
print("Removed "..shell.dir().."/"..v)
|
||||||
|
end
|
||||||
|
end
|
||||||
fs.delete(v)
|
fs.delete(v)
|
||||||
|
print("Removed "..v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
print("Installing sPhone...")
|
print("Installing sPhone...")
|
||||||
|
|
Loading…
Reference in a new issue