added exit to gawk loop

This commit is contained in:
inxi-svn 2011-05-21 23:14:27 +00:00
parent 9cef50f286
commit 07107f432f

1
inxi
View file

@ -2699,6 +2699,7 @@ get_de_version()
/'$2'/ {
gsub(",","",$0) # xfce output has , in it, so dump all commas
print $'$3'
exit # so that only first match runs
}' )
echo $version