Skip to content

Commit

Permalink
fix(Makefile): escape backslash in grep
Browse files Browse the repository at this point in the history
  • Loading branch information
xudyang1 committed Jan 12, 2025
1 parent 99492a9 commit be50e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ifeq ($(LUASNIP_DETECTED_OS),Windows)
# On Git Bash, `which nvim` returns a Unix style path: `/c/Program Files/Git/bin/nvim`
# Always convert to `C:/Program Files/Git/bin/nvim` for powershell and pwsh users
NEOVIM_BIN_PATH?=$(shell \
if (scoop prefix neovim | grep '^[A-Z]:[/\\]') >/dev/null 2>&1; then \
if (scoop prefix neovim | grep '^[A-Z]:[/\\\\]') >/dev/null 2>&1; then \
echo "$$(scoop prefix neovim)/bin" | sed 's/\\\\/\\//g'; \
elif which nvim >/dev/null 2>&1; then \
dirname "$$(which nvim)" | sed 's/^\\/\\(.\\)\\//\\U\\1:\\//'; \
Expand Down

0 comments on commit be50e96

Please sign in to comment.