From eb0fcc44a150c0de82e6fdb36752dd56bf27d017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 12 May 2024 11:02:43 +0000 Subject: [PATCH] fetch tea for the matching architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/11 Co-authored-by: Léana 江 Co-committed-by: Léana 江 --- forgejo-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forgejo-release.sh b/forgejo-release.sh index 762270f..b9aaf03 100755 --- a/forgejo-release.sh +++ b/forgejo-release.sh @@ -20,7 +20,8 @@ export GNUPGHOME setup_tea() { if ! test -f $BIN_DIR/tea ; then - curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-amd64 > $BIN_DIR/tea + ARCH=$(dpkg --print-architecture) + curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-$ARCH > $BIN_DIR/tea chmod +x $BIN_DIR/tea fi }