From 7b16d801fb52ed2e548840169173e41820c9a568 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Mon, 25 Apr 2022 09:45:36 +0200 Subject: [PATCH] Fix build for non-x86 archtectures (By paleozogt) and update GOSU to 1.14 Fix build for non-x86 archtectures (By paleozogt) and update GOSU to 1.14 Signed-off-by: Bensuperpc --- imagefiles/install-gosu-binary.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imagefiles/install-gosu-binary.sh b/imagefiles/install-gosu-binary.sh index 599a0a0..28cb37d 100755 --- a/imagefiles/install-gosu-binary.sh +++ b/imagefiles/install-gosu-binary.sh @@ -13,8 +13,8 @@ if ! command -v gpg &> /dev/null; then exit 1 fi -GOSU_VERSION=1.12 -dpkgArch=$(if test "$(uname -m)" = "x86_64"; then echo amd64; else echo i386; fi) +GOSU_VERSION=1.14 +dpkgArch=$(dpkg --print-architecture) 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"