diff --git a/build-packages.sh b/build-packages.sh index 9b929715e9f7..48213860907e 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -16,6 +16,10 @@ initHostDistroRid() if [ "$__HostOS" == "Linux" ]; then if [ -e /etc/os-release ]; then source /etc/os-release + if [[ $ID == "alpine" ]]; then + # remove the last version digit + VERSION_ID=${VERSION_ID%.*} + fi __HostDistroRid="$ID.$VERSION_ID-$__Arch" elif [ -e /etc/redhat-release ]; then local redhatRelease=$(