Skip to content

Commit 6b7b653

Browse files
committed
code.sh is broken in WSL after commit "run code wsl in dev ". Fixes microsoft#72263
1 parent b9725ba commit 6b7b653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function code-wsl()
5959
{
6060
# in a wsl shell
6161
local WIN_CODE_CLI_CMD=$(wslpath -w "$ROOT/scripts/code-cli.bat")
62-
if [ -z "$WSL_EXT_WLOC" ]; then
62+
if ! [ -z "$WIN_CODE_CLI_CMD" ]; then
6363
local WSL_EXT_ID="ms-vscode.remote-wsl"
6464
local WSL_EXT_WLOC=$(cmd.exe /c "$WIN_CODE_CLI_CMD" --locate-extension $WSL_EXT_ID)
6565
if ! [ -z "$WSL_EXT_WLOC" ]; then

0 commit comments

Comments
 (0)