From 63a18416863cbb304aca5ec97a12237046a2ea2e Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Fri, 8 Mar 2024 16:48:00 +0100 Subject: [PATCH] fix(installer): use `vim.o.sh` instead of `'sh'` On Windows, `sh` might not be available (e.g. if not installed with git). Even if git `sh` is installed, it may not see everything that is on the `PATH` (see #166). The default `vim.o.sh` on Windows is `cmd.exe`. On Linux and MacOS, the script should behave as before. --- installer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.lua b/installer.lua index f3b6092d..4cba42ee 100644 --- a/installer.lua +++ b/installer.lua @@ -202,7 +202,7 @@ local function set_up_luarocks(install_path) end sc = vim.system({ - "sh", + vim.o.sh, "configure", "--prefix=" .. install_path, "--lua-version=5.1",