Add test for $WM for the CRUX version

This commit is contained in:
arcetera committed 2015-11-22 08:22:05 -05:00
1 parent ae7c3f37e6
commit f0ce52826c
1 file changed
+3 -1
+3 -1
View File
@@ -12,7 +12,9 @@ KERNEL="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)"
PACKAGES="$(pkginfo -i | wc -l)"
# shell is already defined
WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d " " -f2)"
if [[ -z "$WM" ]]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)"
fi
## DEFINE COLORS