update 2025-02-10 04:18:53

This commit is contained in:
kenzok8 2025-02-10 04:18:53 +08:00
parent ea482634f1
commit 8db8ebdf21
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function log(...)
end
function is_old_uci()
return sys.call("grep 'require \"uci\"' /usr/lib/lua/luci/model/uci.lua >/dev/null 2>&1") == 0
return sys.call("grep -E 'require[ \t]*\"uci\"' /usr/lib/lua/luci/model/uci.lua >/dev/null 2>&1") == 0
end
function uci_save(cursor, config, commit, apply)