diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2020-10-16 23:41:45 +0300 |
---|---|---|
committer | Martin Aeschlimann <martinae@microsoft.com> | 2020-10-16 23:45:38 +0300 |
commit | 59df6b40f135bdf3d5831258735e1a9bc53c887b (patch) | |
tree | 62c71a0f4a821a73477b0a9ade39c7fb8136ae79 /scripts | |
parent | f10b984bc77897efb182c3326aaf491d62673949 (diff) |
code.sh: Prevent stealing of stdin (for #99815)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/code.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/code.sh b/scripts/code.sh index ef117c55c48..7ab367c178c 100755 --- a/scripts/code.sh +++ b/scripts/code.sh @@ -49,7 +49,7 @@ function code() { function code-wsl() { - HOST_IP=$(powershell.exe –noprofile -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress | Write-Host -NoNewline}") + HOST_IP=$(echo "" | powershell.exe –noprofile -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress | Write-Host -NoNewline}") export DISPLAY="$HOST_IP:0" # in a wsl shell @@ -59,7 +59,7 @@ function code-wsl() cd $ROOT export WSLENV=ELECTRON_RUN_AS_NODE/w:VSCODE_DEV/w:$WSLENV local WSL_EXT_ID="ms-vscode-remote.remote-wsl" - local WSL_EXT_WLOC=$(VSCODE_DEV=1 ELECTRON_RUN_AS_NODE=1 "$ROOT/.build/electron/Code - OSS.exe" "out/cli.js" --locate-extension $WSL_EXT_ID) + local WSL_EXT_WLOC=$(echo "" | VSCODE_DEV=1 ELECTRON_RUN_AS_NODE=1 "$ROOT/.build/electron/Code - OSS.exe" "out/cli.js" --locate-extension $WSL_EXT_ID) cd $CWD if [ -n "$WSL_EXT_WLOC" ]; then # replace \r\n with \n in WSL_EXT_WLOC |