fix: 更新版本号至0.3.1并修复空参数问题

更新installer.lua、bios.lua和pkg.lua中的版本号至0.3.1
在pkg.lua中添加参数过滤逻辑,避免空参数导致的问题
This commit is contained in:
2025-09-01 22:10:50 +08:00
parent fb33b53b42
commit 625f959b4e
3 changed files with 12 additions and 4 deletions

View File

@@ -381,4 +381,12 @@ local function main(args)
end
-- 运行主函数
main({...})
local args = {...}
-- 过滤掉可能的空参数
local filtered_args = {}
for _, arg in ipairs(args) do
if arg and arg ~= "" then
table.insert(filtered_args, arg)
end
end
main(filtered_args)