mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 16:44:23 +08:00
🐶 Sync 2026-10-03 23:38:36
This commit is contained in:
1 parent
b63935e763
commit
d0f1c561e1
187 files changed
+1472
-443
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