From 9588b6fe87647452d8e1432e45c54d28839c9495 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 3 Oct 2018 10:22:28 +0200 Subject: [PATCH] Launching "code" from git bash fails with "cannot find module" error. Fixes #58950 --- resources/win32/bin/code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/win32/bin/code.sh b/resources/win32/bin/code.sh index ff651424bcb..eaef0759a87 100644 --- a/resources/win32/bin/code.sh +++ b/resources/win32/bin/code.sh @@ -20,7 +20,7 @@ if grep -q Microsoft /proc/version; then "$ELECTRON" "$@" exit $? fi -elif [ "$(expr substr $(uname -s) 1 9)" == "CYGWIN_NT" ]; then +elif [ -x "$(command -v cygpath)" ]; then CLI=$(cygpath -m "$VSCODE_PATH/resources/app/out/cli.js") else CLI="$VSCODE_PATH/resources/app/out/cli.js" -- GitLab