From 11a1f705db94886bd3a33c2d547dc35699998a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Mon, 7 Jun 2021 20:38:43 +0200 Subject: [PATCH] fix code.sh script in wsl2+gui --- scripts/code.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $?