mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 05:03:56 +08:00
update 2026-10-03 23:35:33
This commit is contained in:
1 parent
7a2d332eaf
commit
880eb38e4c
2031 files changed
+51
-1545022
No files matched your search
@@ -396,13 +396,12 @@ function repeat_exist(table, value)
|
||||
end
|
||||
|
||||
function remove(...)
|
||||
for i = 1, select("#", ...) do
|
||||
local value = select(i, ...)
|
||||
if type(value) == "string" and #value > 0 and value ~= "/" then
|
||||
local quoted = "'" .. value:gsub("'", "'\\''") .. "'"
|
||||
sys.call("rm -rf " .. quoted)
|
||||
end
|
||||
end
|
||||
for i = 1, select("#", ...) do
|
||||
local value = select(i, ...)
|
||||
if type(value) == "string" and #value > 0 and value ~= "/" then
|
||||
sys.call(string.format("rm -rf -- %s", value))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function is_install(package)
|
||||
|
||||
Reference in new issue
Block a user