From: Richard W.M. Jones Date: Wed, 26 May 2021 10:31:24 +0000 (+0100) Subject: aws: Match multi-digit version number in BIOS information X-Git-Tag: v1.22~10 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b1eae421ff3fdbac0f9ec5b300259c16ff7b1d93;hp=09094be5f2afa21bb5b8221580303f125fd90d0c;p=virt-what.git aws: Match multi-digit version number in BIOS information See: https://listman.redhat.com/archives/virt-tools-list/2021-May/msg00011.html Reported-by: Stuart Cooper --- diff --git a/virt-what.in b/virt-what.in index b7d266b..8021290 100644 --- a/virt-what.in +++ b/virt-what.in @@ -413,7 +413,7 @@ fi # Check for AWS. # AWS on Xen. -if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then +if echo "$dmi" | grep -Eq 'Version: [0-9]+\.[0-9]+\.amazon'; then echo aws # AWS on baremetal or KVM. elif echo "$dmi" | grep -q 'Vendor: Amazon EC2'; then