fix(login): make sure to set on all branch (#268)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-27 03:00:18 -04:00
committed by GitHub
parent a8022896a2
commit 64f2c54822
2 changed files with 7 additions and 2 deletions

View File

@@ -41,9 +41,13 @@ M.get_os_name = function()
end
end
--- This function will run given shell command synchronously.
---@param input_cmd string
---@return integer, string?, string?
M.shell_run = function(input_cmd)
local output = vim.system(vim.split(cmd, " ", { trimempty = true }), { text = true })
local output =
vim.system(vim.split("sh -c " .. vim.fn.shellescape(input_cmd), " ", { trimempty = true }), { text = true }):wait()
return output.code, output.stderr, output.stdout
end
---@alias _ToggleSet fun(state: boolean): nil