fix code.sh script in wsl2+gui
This commit is contained in:
parent
67561036cf
commit
11a1f705db
|
@ -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 $?
|
||||
|
|
Loading…
Reference in a new issue