dotfiles/Ansible/facts/xorg.fact

9 lines
151 B
Bash
Executable file

#!/usr/bin/env zsh
if which xorg 1>/dev/null 2>&1; then
xorg_exists="true"
else
xorg_exists="false"
fi
echo "{ \"exists\": ${xorg_exists} }"