diff --git a/imagefiles/install-gosu-binary.sh b/imagefiles/install-gosu-binary.sh index 599a0a0..61a6274 100755 --- a/imagefiles/install-gosu-binary.sh +++ b/imagefiles/install-gosu-binary.sh @@ -14,7 +14,7 @@ if ! command -v gpg &> /dev/null; then fi GOSU_VERSION=1.12 -dpkgArch=$(if test "$(uname -m)" = "x86_64"; then echo amd64; else echo i386; fi) +dpkgArch="$(dpkg --print-architecture | sed 's/.*-//')" url="https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${dpkgArch}" url_key="https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-${dpkgArch}.asc"