summaryrefslogtreecommitdiff
path: root/build-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-test.sh')
-rwxr-xr-xbuild-test.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/build-test.sh b/build-test.sh
index 7cb4c02fac..2de1f69e28 100755
--- a/build-test.sh
+++ b/build-test.sh
@@ -20,14 +20,12 @@ initHostDistroRid()
elif [ -e /etc/os-release ]; then
source /etc/os-release
if [[ $ID == "alpine" ]]; then
- # remove the last version digit
- VERSION_ID=${VERSION_ID%.*}
+ __HostDistroRid="linux-musl-$__HostArch"
else
__PortableBuild=1
+ __HostDistroRid="$ID.$VERSION_ID-$__HostArch"
fi
-
- __HostDistroRid="$ID.$VERSION_ID-$__HostArch"
- fi
+ fi
elif [ "$__HostOS" == "FreeBSD" ]; then
__freebsd_version=`sysctl -n kern.osrelease | cut -f1 -d'.'`
__HostDistroRid="freebsd.$__freebsd_version-$__HostArch"