mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
minor minification
This commit is contained in:
parent
5680260136
commit
b6a3305f23
@ -179,11 +179,8 @@ local function clean(manifest)
|
|||||||
if fs.isDriveRoot(val) then
|
if fs.isDriveRoot(val) then
|
||||||
yellow();println("skipped mount '" .. val .. "'")
|
yellow();println("skipped mount '" .. val .. "'")
|
||||||
elseif fs.isDir(val) then
|
elseif fs.isDir(val) then
|
||||||
if tree[val] ~= nil then
|
if tree[val] ~= nil then lgray();_clean_dir("/" .. val, tree[val])
|
||||||
lgray();_clean_dir("/" .. val, tree[val])
|
else white();if ask_y_n("delete the unused directory '" .. val .. "'") then lgray();_clean_dir("/" .. val) end end
|
||||||
else
|
|
||||||
white();if ask_y_n("delete the unused directory '" .. val .. "'") then lgray();_clean_dir("/" .. val, tree[val]) end
|
|
||||||
end
|
|
||||||
if #fs.list(val) == 0 then fs.delete(val);lgray();println("deleted empty directory '" .. val .. "'") end
|
if #fs.list(val) == 0 then fs.delete(val);lgray();println("deleted empty directory '" .. val .. "'") end
|
||||||
elseif not _in_array(val, tree) and (string.find(val, ".settings") == nil) then
|
elseif not _in_array(val, tree) and (string.find(val, ".settings") == nil) then
|
||||||
white();if ask_y_n("delete the unused file '" .. val .. "'") then fs.delete(val);lgray();println("deleted " .. val) end
|
white();if ask_y_n("delete the unused file '" .. val .. "'") then fs.delete(val);lgray();println("deleted " .. val) end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user