From ae06c003771129487a5ee54437bdce350e5c9dbc Mon Sep 17 00:00:00 2001 From: zry98 Date: Wed, 25 Oct 2023 23:25:23 +0200 Subject: [PATCH] install-gosu-binary: fix arch detection to match gosu releases arch naming --- imagefiles/install-gosu-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"