fix: reuse tea if already installed (#72)

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/72
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-07-27 14:03:26 +00:00 committed by earl-warren
parent 26fe28ef1e
commit c15813dcfb
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201

View file

@ -29,7 +29,7 @@ export GNUPGHOME
setup_tea() {
if which tea 2>/dev/null; then
TEA_BIN=$(which tea)
else ! test -f $TEA_BIN;
elif ! test -f $TEA_BIN; then
ARCH=$(dpkg --print-architecture)
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
chmod +x $TEA_BIN