Skip to content

Commit 996194e

Browse files
committed
fix: remove -p in folder creation as it is not supported by some shells
eg Nushell
1 parent 066193f commit 996194e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/lsp_binary.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ local function ensure_directory_exists(path)
2121
if vim.fn.has("win32") > 0 then
2222
cmd = 'cmd /c "mkdir "' .. dir_path:gsub("\\", "\\\\"):gsub("/", "\\\\")
2323
else
24-
cmd = "mkdir -p " .. vim.fn.shellescape(dir_path)
24+
cmd = "mkdir " .. vim.fn.shellescape(dir_path)
2525
end
2626

2727
logger.trace("Creating directory with command: " .. cmd)

0 commit comments

Comments
 (0)