added trigger for --version/-v in get_de_version, sigh...

This commit is contained in:
inxi-svn 2011-05-26 20:01:07 +00:00
parent 2a88f17e8c
commit 088bf93df8

10
inxi
View file

@ -2844,9 +2844,15 @@ get_desktop_environment()
# args: $1 - desktop command for --version; $2 - search string; $3 - gawk print number
get_de_version()
{
local version=''
local version='' get_version='--version'
version=$( $1 --version 2>/dev/null | gawk '
case $1 in
dwm|wmii)
get_version='-v'
;;
esac
version=$( $1 $get_version 2>/dev/null | gawk '
BEGIN {
IGNORECASE=1
}