win code.sh fix

This commit is contained in:
Martin Aeschlimann 2019-06-20 16:47:17 +02:00
parent a145fbf2b1
commit 769e5d2ad2

View file

@ -11,7 +11,7 @@ VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")"
ELECTRON="$VSCODE_PATH/$NAME.exe"
if grep -qi Microsoft /proc/version; then
# in a wsl shell
if ! [ -z "$WSL_DISTRO_NAME"]; then
if ! [ -z "$WSL_DISTRO_NAME" ]; then
# $WSL_DISTRO_NAME is available since WSL builds 18362, also for WSL2
WSL_BUILD=18362
else