This commit is contained in:
sxyazi
2025-07-02 23:35:50 +08:00
parent 2ad42fa706
commit e5f00e2716
5 changed files with 105 additions and 64 deletions

View File

@@ -21,7 +21,7 @@ local function run_with_sudo(program, args)
return cmd:output()
end
local permit = ya.hide()
local permit = ui.hide and ui.hide() or ya.hide() -- TODO: remove this
print(string.format("Sudo password required to run: `%s %s`", program, table.concat(args)))
local output = cmd:output()
permit:drop()