* Updated the os_type regex to detect CentOS Stream properly.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 4 years ago
parent d3d81f865d
commit 983e3ad114
  1. 2
      Anvil/Tools/Get.pm

@ -1827,7 +1827,7 @@ sub os_type
$os_type = "rhel".$1; $os_type = "rhel".$1;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { os_type => $os_type }}); $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { os_type => $os_type }});
} }
elsif ($release =~ /CentOS .*? (\d+)\./) elsif ($release =~ /CentOS .*? (\d+)\.?/)
{ {
# CentOS, with the major version number appended # CentOS, with the major version number appended
$os_type = "centos".$1; $os_type = "centos".$1;

Loading…
Cancel
Save