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 {
22
22
grep -q " Ubuntu $version " /etc/* release
23
23
}
24
24
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
26
26
# can use regex. If you don't care about the version, leave it unspecified.
27
27
function os_is_centos {
28
28
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
30
30
}
31
31
32
32
# 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