mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added trigger for --version/-v in get_de_version, sigh...
This commit is contained in:
parent
2a88f17e8c
commit
088bf93df8
10
inxi
10
inxi
|
@ -2844,9 +2844,15 @@ get_desktop_environment()
|
||||||
# args: $1 - desktop command for --version; $2 - search string; $3 - gawk print number
|
# args: $1 - desktop command for --version; $2 - search string; $3 - gawk print number
|
||||||
get_de_version()
|
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 {
|
BEGIN {
|
||||||
IGNORECASE=1
|
IGNORECASE=1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue