See: https://github.com/dotnet/core-setup/commit/
c8a27076f93c3107759b8a86a02ea4f40d100b67
We need to strip the last part of the version number for alpine and rhel because
they are compatible and we don't want the specific versions.
if [ "$__HostOS" == "Linux" ]; then
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ $ID == "alpine" ]]; then
+ if [[ $ID == "alpine" || $ID == "rhel"]]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi
if [ "$__HostOS" == "Linux" ]; then
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ $ID == "alpine" ]]; then
+ if [[ $ID == "alpine" || $ID == "rhel"]]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi