From 088bf93df8c12a064d610640339e58274348d598 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 26 May 2011 20:01:07 +0000 Subject: [PATCH] added trigger for --version/-v in get_de_version, sigh... --- inxi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index ad8b029..dac5cc6 100755 --- a/inxi +++ b/inxi @@ -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 }