From b1eae421ff3fdbac0f9ec5b300259c16ff7b1d93 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 26 May 2021 11:31:24 +0100 Subject: [PATCH] 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 --- virt-what.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1