dotnet-install should identify all RHEL 7.x as RHEL

New RHEL minor versions are compatible with previous RHEL minor
versions. They also replace them: all users using RHEL 7.n are migrated
to RHEL 7.(n+1) by a simple yum upgrade. So just treat all RHEL 7.x
version as RHEL.

This only holds true for minor versions. RHEL 7 is not compatible with
RHEL 6. But since .NET Core only supports RHEL 7, this shouldn't matter.
This commit is contained in:
Omair Majid 2017-01-20 17:19:35 -05:00
parent 82317c7a0a
commit 3fde06faf8

View file

@ -92,7 +92,7 @@ get_current_os_name() {
echo "opensuse.42.1"
return 0
;;
"rhel.7.0" | "rhel.7.1" | "rhel.7.2")
"rhel.7"*)
echo "rhel"
return 0
;;