diff options
author | João Moreno <joao.moreno@microsoft.com> | 2021-06-07 21:38:43 +0300 |
---|---|---|
committer | João Moreno <joao.moreno@microsoft.com> | 2021-06-07 21:39:27 +0300 |
commit | 11a1f705db94886bd3a33c2d547dc35699998a34 (patch) | |
tree | 9ca8ec328a49f403416aca31dc13afb614258409 /scripts | |
parent | 67561036cf35472f1bfa19c04f808b0894a2b99f (diff) |
fix code.sh script in wsl2+gui
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/code.sh | 3 |
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 $? |