Skip to content

Commit

Permalink
fixed distroRid having the last version digit for alpine (dotnet#62942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakael authored and omajid committed Jun 17, 2022
1 parent 3e0c89b commit 0aaad3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/native/init-distro-rid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( isPortable == 0 )); then
if [ "${ID}" = "rhel" ]; then
if [[ "${ID}" == "rhel" || "${ID}" == "alpine" ]]; then
# remove the last version digit
VERSION_ID="${VERSION_ID%.*}"
fi
Expand Down

0 comments on commit 0aaad3b

Please sign in to comment.