diff --git a/scripts/code.sh b/scripts/code.sh index f8de129630e2cb8f284b2aaa64ca38e73b9f1fc5..8227916f953134fc3186a340945fd6fbcacfe73c 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