mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-08-28 03:31:02 +00:00
fix: reuse tea if already installed
This commit is contained in:
parent
b669ffeda7
commit
f531e9753a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue