From e65f405f21e468384277417517d78c58b2112162 Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Tue, 24 Oct 2017 16:22:45 -0700 Subject: 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. --- build-packages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-packages.sh') 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 -- cgit v1.2.3