[sh] Fix comparison error for autostart x script

When no virtual terminal is set (as an XDG value by e.g. the linux
installation), fixes error complaining about comparing nothing with an
integer.
This commit is contained in:
Marty Oehme 2020-06-25 09:40:54 +02:00
parent fc121e7fd0
commit 6a22991026
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
if [ ! "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
if [ ! "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
exec startx "$XDG_CONFIG_HOME"/xresources/xinitrc
fi