Improve asf arch detection in docker build hook

This commit is contained in:
JustArchi
2020-10-04 17:13:41 +02:00
parent 3a7af6ecc8
commit eb1e2e011a

View File

@@ -3,7 +3,7 @@
# See: https://docs.docker.com/docker-hub/builds/advanced
set -eu
asf_arch="$(echo "$DOCKER_TAG" | cut -d '-' -f 2)"
asf_arch="$(echo "$DOCKER_TAG" | rev | cut -d '-' -f 1 | rev)"
case "$asf_arch" in
"arm") dotnet_arch="-arm32v7" ;;