AlmaLinux Support

This commit is contained in:
midoks
2022-06-20 19:19:51 +08:00
parent 11b5a16bf9
commit 6bd84e061b
4 changed files with 235 additions and 1 deletions
+3 -1
View File
@@ -18,7 +18,7 @@ if grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
sudo ln -sf /bin/bash /bin/sh
fi
if [ "${_os}" == "Darwin" ]; then
if [ ${_os} == "Darwin" ]; then
OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
@@ -26,6 +26,8 @@ elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then
OSNAME='fedora'
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then
OSNAME='rocky'
elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then
OSNAME='alma'
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
OSNAME='debian'
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then