From 6b7b653daed05df23333c76064c22cd263d7214f Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 15 Apr 2019 13:07:08 +0200 Subject: [PATCH] code.sh is broken in WSL after commit "run code wsl in dev ". Fixes #72263 --- scripts/code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/code.sh b/scripts/code.sh index f8de129630e..8227916f953 100755 --- a/scripts/code.sh +++ b/scripts/code.sh @@ -59,7 +59,7 @@ function code-wsl() { # in a wsl shell local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat") - if [ -z "$WSL_EXT_WLOC" ]; then + if ! [ -z "$WIN_CODE_CLI_CMD" ]; then local WSL_EXT_ID="ms-vscode.remote-wsl" local WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CLI_CMD" --locate-extension $WSL_EXT_ID) if ! [ -z "$WSL_EXT_WLOC" ]; then -- GitLab