From 33159233fd161877ffe37187bf06689fe0e8bea2 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Mon, 23 Oct 2017 23:03:23 +0200 Subject: [PATCH] Fix RID extraction in packages and test build for Alpine (#14656) * Fix RID extraction in packages and test build for Alpine The host RID extraction in build-packages.sh and build-test.sh was not matching the one in build.sh * Reflect feedback --- build-packages.sh | 10 +++++++++- build-test.sh | 23 +++++++++++++++++++---- 2 files changed, 28 insertions(+), 5 deletions(-) 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=$(