From 2a50a6286a8683348876c3804ed83baf711fe5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Fri, 30 Sep 2022 04:51:33 +0200 Subject: [PATCH] (trunk|task): Only install when not already installed --- docker/builder/docker-entrypoint.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docker/builder/docker-entrypoint.sh b/docker/builder/docker-entrypoint.sh index 4d36ace..9a307c6 100755 --- a/docker/builder/docker-entrypoint.sh +++ b/docker/builder/docker-entrypoint.sh @@ -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 "$@" \ No newline at end of file