added in a null case check

This commit is contained in:
inxi-svn 2011-05-27 20:49:47 +00:00
parent 8561e00ca9
commit 9df881c11f

2
inxi
View file

@ -2874,6 +2874,7 @@ get_de_version()
;;
esac
if [[ -n $version_data ]];then
version=$( gawk '
BEGIN {
IGNORECASE=1
@ -2885,6 +2886,7 @@ get_de_version()
print $'$3'
exit # quit after first match prints
}' <<< "$version_data" )
fi
echo $version
}