Skip to content

Commit

Permalink
Normalize the alpine and rhel RIDs
Browse files Browse the repository at this point in the history
See: dotnet/core-setup@c8a2707

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.
  • Loading branch information
weshaggard committed Oct 30, 2017
1 parent 2a0e083 commit e65f405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e65f405

Please sign in to comment.