Fix RHEL distribution check condition (#237)

This commit is contained in:
Evgeniy Antonyuk 2024-05-15 16:37:45 +07:00 committed by GitHub
parent 83eada812f
commit 0a652b552e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -675,8 +675,8 @@ get_os_info () {
fi
fi
DIST=$(trim $DIST);
REV=$(trim $REV);
DIST=$(trim "$DIST")
fi
}
@ -863,7 +863,7 @@ install_docker () {
systemctl start docker
systemctl enable docker
elif [ "${DIST}" == "Red Hat Enterprise Linux Server" ]; then
elif [[ "${DIST}" == Red\ Hat\ Enterprise\ Linux* ]]; then
echo ""
echo "Your operating system does not allow Docker CE installation."