[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:
parent
fc121e7fd0
commit
6a22991026
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue