mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
DE: Check that WM isn't empty
This commit is contained in:
2
neofetch
2
neofetch
@@ -556,7 +556,7 @@ get_de() {
|
|||||||
# the desktop variables are sometimes also set to the
|
# the desktop variables are sometimes also set to the
|
||||||
# window manager name. This checks to see if WM == DE
|
# window manager name. This checks to see if WM == DE
|
||||||
# and dicards the DE value.
|
# and dicards the DE value.
|
||||||
[[ "$de" =~ $wm ]] && { unset -v de; return; }
|
[[ "$wm" && "$de" =~ $wm ]] && { unset -v de; return; }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user