mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleanup for wm version
This commit is contained in:
parent
c6baa7a03b
commit
ef6cb816dd
4
inxi
4
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
|
||||
}' )
|
||||
|
|
Loading…
Reference in a new issue