Skip to content

Commit

Permalink
one more regex :(
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivaschavan committed Aug 27, 2024
1 parent 6fff704 commit f1279a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/platform/centos/centos.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (c *CentOS) Version() (string, error) {
return "redhat", nil
}
}
if match, _ := regexp.MatchString(`.*7\.[3-9]\.*|.*8\.[5-9]\.*|.*9\.[1-2]\.*`, string(version)); match {
if match, _ := regexp.MatchString(`.*7\.[3-9]\.*|.*8\.[5-9]\.*|.*9\.[1-2,4]\.*`, string(version)); match {
return "redhat", nil
}
return "", fmt.Errorf("Unable to determine OS type: %s", string(version))
Expand Down

0 comments on commit f1279a3

Please sign in to comment.