fix: reuse tea if already installed

This commit is contained in:
Earl Warren 2025-07-27 08:53:37 +02:00
parent b669ffeda7
commit f531e9753a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

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