From 0dacf0ef75a30be10f9dbe92baddf6cf1fadbd96 Mon Sep 17 00:00:00 2001 From: devydave Date: Fri, 20 Feb 2026 15:53:40 +0100 Subject: [PATCH] fix: fails deployment when invalid HUGO_VERSION is given or download fails --- badger-entrypoint.sh.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/badger-entrypoint.sh.tmpl b/badger-entrypoint.sh.tmpl index d2f7562..89a187c 100644 --- a/badger-entrypoint.sh.tmpl +++ b/badger-entrypoint.sh.tmpl @@ -10,6 +10,11 @@ else echo "installing hugo version $HUGO_VERSION" curl -o hugo.tgz --fail -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" && \ tar xvzf hugo.tgz -C $BIN_TARGET + res=$? + if test "$res" != "0"; then + echo "could not download hugo with version: $HUGO_VERSION" + exit 1 + fi fi {{ if eq (env "PRIVATE_ENABLED") "1" }} -- 2.49.0