We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f6156 commit 953e675Copy full SHA for 953e675
modules/bash-commons/src/os.sh
@@ -30,10 +30,10 @@ function os_is_centos {
30
}
31
32
# Returns true (0) if this is a RedHat server at the given version or false (1) otherwise. The version number
33
-# can use regex. If you don't care about the version, leave it unspecified.
+# can use regex. If you don't care about the version, leave it unspecified. RedHat 8+ removed the word "Server".
34
function os_is_redhat {
35
local -r version="$1"
36
- grep -q "Red Hat Enterprise Linux Server release $version" /etc/*release
+ grep -q "Red Hat Enterprise Linux release $version" /etc/*release || grep -q "Red Hat Enterprise Linux Server release $version" /etc/*release
37
38
39
0 commit comments