mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 00:57:52 +08:00
🎉 Sync 2026-10-24 00:22:39
This commit is contained in:
1 parent
6fa3534628
commit
c3de2c6cdf
97 files changed
+7985
-3245
No files matched your search
@@ -58,12 +58,10 @@ local function log(...)
|
||||
end
|
||||
|
||||
local function is_file_nonzero(path)
|
||||
if path and #path > 1 then
|
||||
if sys.exec('[ -s "%s" ] && echo -n 1' % path) == "1" then
|
||||
return true
|
||||
end
|
||||
if path and #path > 1 and (fs.stat(path, "size") or 0) > 0 then
|
||||
return true
|
||||
end
|
||||
return nil
|
||||
return false
|
||||
end
|
||||
|
||||
local function insert_unique(dest_table, value, lookup_table)
|
||||
|
||||
Reference in new issue
Block a user