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