diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-11-01 13:03:30 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-11-01 13:03:30 +0100 |
| commit | 6dc4d83ba0647df4d5bee733d63e29c4b679dd16 (patch) | |
| tree | 5961962218a95b64f918135d296dcd7b70120a54 /init.lua | |
| parent | b0e4215ec52acc07b1ff15b1bcc7562e1cdbf7c3 (diff) | |
| download | vis-lockfiles-6dc4d83ba0647df4d5bee733d63e29c4b679dd16.tar.gz vis-lockfiles-6dc4d83ba0647df4d5bee733d63e29c4b679dd16.zip | |
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -44,10 +44,8 @@ local function prompt_backend_whiptail(msg, menu) end local function prompt_backend_vis_menu(msg, menu, choices) - local cmd1 = 'printf >/dev/tty %s \'' .. msg .. '\n\'' - local cmd2 = 'printf %s \'' .. choices .. '\'' - local cmd3 = 'vis-menu -b -p \'' .. menu .. '\'' - return vis:pipe(cmd1 .. ';' .. cmd2 .. '|' .. cmd3, true) + os.execute('printf >/dev/tty %s \'' .. msg .. '\n\'') + return vis:pipe(choices, 'vis-menu -b -p \'' .. menu .. '\'', true) end local function prompt_backend(path, lfile_path, pid, backend) |
