Prevent word splitting.
parent
1ad2ad12bf
commit
edc7ba56f1
|
@ -96,6 +96,6 @@ done
|
||||||
# graphics UI detection
|
# graphics UI detection
|
||||||
# basically just checks if an X server is running on the machine and if yes, we just assume it's a desktop, not a server
|
# basically just checks if an X server is running on the machine and if yes, we just assume it's a desktop, not a server
|
||||||
# grep will be always returned as a process with Xorg in the command line, so assume there must be a second process for this to succeed
|
# grep will be always returned as a process with Xorg in the command line, so assume there must be a second process for this to succeed
|
||||||
if [ $(ps aux | grep Xorg | wc -l) -gt 1 ]; then
|
if [ "$(ps aux | grep Xorg | wc -l)" -gt 1 ]; then
|
||||||
add_tag "xorg_running" "desktop"
|
add_tag "xorg_running" "desktop"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue