mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
added in a null case check
This commit is contained in:
parent
8561e00ca9
commit
9df881c11f
2
inxi
2
inxi
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue