fix(scan): Failed to parse CentOS Stream (#1098)
This commit is contained in:
committed by
GitHub
parent
4359503484
commit
fcc4901a10
@@ -52,7 +52,7 @@ func detectRedhat(c config.ServerInfo) (bool, osTypeInterface) {
|
||||
|
||||
release := result[2]
|
||||
switch strings.ToLower(result[1]) {
|
||||
case "centos", "centos linux":
|
||||
case "centos", "centos linux", "centos stream":
|
||||
cent := newCentOS(c)
|
||||
cent.setDistro(config.CentOS, release)
|
||||
return true, cent
|
||||
|
||||
Reference in New Issue
Block a user