fix code.sh script in wsl2+gui

This commit is contained in:
João Moreno 2021-06-07 20:38:43 +02:00
parent 67561036cf
commit 11a1f705db
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -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 $?