summaryrefslogtreecommitdiff
path: root/build-packages.sh
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2017-10-24 16:22:45 -0700
committerWes Haggard <Wes.Haggard@microsoft.com>2017-10-30 13:05:17 -0700
commite65f405f21e468384277417517d78c58b2112162 (patch)
treee7c03a48ebb2e945d1190a7887c34821839c7a90 /build-packages.sh
parent2a0e083d8605a860a92a07623b0542df19ae5cb3 (diff)
downloadcoreclr-e65f405f21e468384277417517d78c58b2112162.tar.gz
coreclr-e65f405f21e468384277417517d78c58b2112162.tar.bz2
coreclr-e65f405f21e468384277417517d78c58b2112162.zip
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-packages.sh')
-rwxr-xr-xbuild-packages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-packages.sh b/build-packages.sh
index 4821386090..ed4dec9643 100755
--- a/build-packages.sh
+++ b/build-packages.sh
@@ -16,7 +16,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