Correctness centos version

This commit is contained in:
Safa Bayar 2019-10-17 22:48:21 -04:00
parent 40a9fb975a
commit e2e58b20b3

View file

@ -54,7 +54,7 @@ function checkOS () {
source /etc/os-release source /etc/os-release
if [[ "$ID" = "centos" ]]; then if [[ "$ID" = "centos" ]]; then
OS="centos" OS="centos"
if [[ ! $VERSION_ID == "7" ]]; then if [[ ! $VERSION_ID ~= "7|8" ]]; then
echo "⚠️ Your version of CentOS is not supported." echo "⚠️ Your version of CentOS is not supported."
echo "" echo ""
echo "The script only support CentOS 7." echo "The script only support CentOS 7."