(trunk|task): Only install when not already installed
continuous-integration/drone/push Build is passing Details

master
René Jochum 2 years ago
parent e7cd6c5dd1
commit 2a50a6286a
Signed by: jochum
GPG Key ID: F7D906F5E51E8E5E

@ -8,12 +8,16 @@ if [[ ! -x /go/bin/protoc-gen-micro ]]; then
fi
# Install task
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /go/bin
if [[ ! -x /go/bin/task ]]; then
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /go/bin
fi
# Install trunk
pushd /go/bin
curl -LO https://trunk.io/releases/trunk
chmod +x trunk
popd
if [[ ! -x /go/bin/trunk ]]; then
pushd /go/bin
curl -LO https://trunk.io/releases/trunk
chmod +x trunk
popd
fi
exec "$@"
Loading…
Cancel
Save