Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Moreno <joao.moreno@microsoft.com>2021-06-07 21:38:43 +0300
committerJoão Moreno <joao.moreno@microsoft.com>2021-06-07 21:39:27 +0300
commit11a1f705db94886bd3a33c2d547dc35699998a34 (patch)
tree9ca8ec328a49f403416aca31dc13afb614258409 /scripts
parent67561036cf35472f1bfa19c04f808b0894a2b99f (diff)
fix code.sh script in wsl2+gui
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/code.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/code.sh b/scripts/code.sh
index 713040b5a27..d23fa3a550a 100755
--- a/scripts/code.sh
+++ b/scripts/code.sh
@@ -71,7 +71,8 @@ function code-wsl()
fi
}
-if ! [ -z ${IN_WSL+x} ]; then
+if [ "$IN_WSL" == "true" ] && [ -z "$DISPLAY" ]; then
code-wsl "$@"
fi
code "$@"
+exit $?