File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ _process_os_release_id() {
3030
3131 # Normalize known distros to os-release names
3232 case "$_os" in
33+ *alma*)
34+ _os="almalinux"
35+ ;;
3336 *centos*)
3437 _os="centos"
3538 ;;
@@ -39,9 +42,15 @@ _process_os_release_id() {
3942 *fedora*)
4043 _os="fedora"
4144 ;;
45+ *ol*)
46+ _os="ol"
47+ ;;
4248 *redhat*|*rhel*|*scientific*)
4349 _os="rhel"
4450 ;;
51+ *rocky*)
52+ _os="rocky"
53+ ;;
4554 *opensuse*)
4655 _os="opensuse"
4756 ;;
@@ -182,8 +191,8 @@ is_debian_based() {
182191
183192# Returns true if the OS is Red Hat-based, otherwise false
184193is_redhat_based() {
185- get_release_id | grep -i -e "centos " -e "fedora " -e "redhat " -e "rhel " \
186- -e "scientific" >/dev/null 2>&1
194+ get_release_id | grep -i -e "almalinux " -e "centos " -e "fedora " -e "ol " \
195+ -e "redhat" -e "rhel" -e "rocky" -e " scientific" >/dev/null 2>&1
187196}
188197
189198# Returns true if the OS is SUSE-based, otherwise false
You can’t perform that action at this time.
0 commit comments