Skip to content

Commit

Permalink
fixed distroRid having the last version digit for alpine (#62942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakael authored May 26, 2022
1 parent 4e27865 commit f5886fc
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" || "${ID}" == "rocky" ]]; then
if [[ "${ID}" == "rhel" || "${ID}" == "rocky" || "${ID}" == "alpine" ]]; then
# remove the last version digit
VERSION_ID="${VERSION_ID%.*}"
fi
Expand Down

0 comments on commit f5886fc

Please sign in to comment.