Fix docker platform spec in run-compat.sh

This commit is contained in:
Mariusz Kogen
2025-12-20 17:24:52 +01:00
parent c93e40dc06
commit b61ed14675

View File

@@ -10,13 +10,15 @@ rel_pwd="${pwd#"$(pwd)"}"
COMPAT_ARCH=$(uname -m)
platform=linux/$ARCH
case $COMPAT_ARCH in
x86_64)
platform=linux/amd64;;
aarch64)
aarch64|arm64)
platform=linux/arm64;;
*)
echo "Unsupported architecture: $COMPAT_ARCH" >&2
exit 1
;;
esac
if [ "$FORCE_COMPAT" = 1 ] || ( [ "$REQUIRES" = "linux" ] && [ "$(uname -s)" != "Linux" ] ) || ( [ "$REQUIRES" = "debian" ] && ! which dpkg > /dev/null ); then