mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 14:33:56 +08:00
update 2026-10-24 00:18:10
This commit is contained in:
1 parent
0dc3af034c
commit
015941ec68
78 files changed
+23
-21821
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