From ef6cb816dd61292440a62664cc32f9cc51a4555e Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 26 May 2011 21:03:46 +0000 Subject: [PATCH] cleanup for wm version --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 164b0e5..2758360 100755 --- a/inxi +++ b/inxi @@ -2861,8 +2861,8 @@ get_de_version() } /'$2'/ { # sample: dwm-5.8.2, ©.. etc, why no space? who knows. Also get rid of v in number string - sub(/(dwm-|wmii-|v|V)/, "",$'$3') - sub(",","",$'$3') # xfce, and other, output has , in it, so dump all commas + # xfce, and other, output has , in it, so dump all commas + gsub(/(,|dwm-|wmii-|v|V)/, "",$'$3') print $'$3' exit # quit after first match prints }' )