mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-08-12 20:11:06 +00:00
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:
parent
26fe28ef1e
commit
c15813dcfb
|
@ -29,7 +29,7 @@ export GNUPGHOME
|
||||||
setup_tea() {
|
setup_tea() {
|
||||||
if which tea 2>/dev/null; then
|
if which tea 2>/dev/null; then
|
||||||
TEA_BIN=$(which tea)
|
TEA_BIN=$(which tea)
|
||||||
else ! test -f $TEA_BIN;
|
elif ! test -f $TEA_BIN; then
|
||||||
ARCH=$(dpkg --print-architecture)
|
ARCH=$(dpkg --print-architecture)
|
||||||
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
|
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
|
||||||
chmod +x $TEA_BIN
|
chmod +x $TEA_BIN
|
||||||
|
|
Loading…
Reference in a new issue