File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ function os_is_ubuntu {
2222 grep -q " Ubuntu $version " /etc/* release
2323}
2424
25- # Returns true (0) if this is a CentOS server at the given version or false (1) otherwise. The version number
25+ # Returns true (0) if this is a CentOS/CentOS Stream server at the given version or false (1) otherwise. The version number
2626# can use regex. If you don't care about the version, leave it unspecified.
2727function os_is_centos {
2828 local -r version=" $1 "
29- grep -q " CentOS Linux release $version " /etc/* release
29+ grep -q " CentOS Linux release $version " /etc/* release || grep -q " CentOS Stream release $version " /etc/ * release
3030}
3131
3232# Returns true (0) if this is a RedHat server at the given version or false (1) otherwise. The version number
You can’t perform that action at this time.
0 commit comments