summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2017-10-24 23:22:45 (GMT)
committerWes Haggard <Wes.Haggard@microsoft.com>2017-10-30 20:05:17 (GMT)
commite65f405f21e468384277417517d78c58b2112162 (patch)
treee7c03a48ebb2e945d1190a7887c34821839c7a90 /build.sh
parent2a0e083d8605a860a92a07623b0542df19ae5cb3 (diff)
downloadcoreclr-e65f405f21e468384277417517d78c58b2112162.zip
coreclr-e65f405f21e468384277417517d78c58b2112162.tar.gz
coreclr-e65f405f21e468384277417517d78c58b2112162.tar.bz2
Normalize the alpine and rhel RIDs
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.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 865f0fe..ad4a6e1 100755
--- a/build.sh
+++ b/build.sh
@@ -61,7 +61,7 @@ initHostDistroRid()
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