Skip to content

Commit 9cb5396

Browse files
authored
fix(client): ignore 'shell' in get_node_version
1 parent 77e3a49 commit 9cb5396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function M.get_node_version()
4949
if not M.node_version then
5050
local node = config.get("copilot_node_command")
5151

52-
local cmd = node .. " --version"
52+
local cmd = { node, "--version" }
5353
local cmd_output_table = vim.fn.systemlist(cmd, nil, false)
5454
local cmd_output = cmd_output_table[#cmd_output_table]
5555
local cmd_exit_code = vim.v.shell_error

0 commit comments

Comments
 (0)