Launching "code" from git bash fails with "cannot find module" error. Fixes #58950

This commit is contained in:
Martin Aeschlimann 2018-10-03 10:22:28 +02:00
parent 315299eddf
commit 9588b6fe87

View file

@ -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"