fix: fails deployment when invalid HUGO_VERSION is given or download fails #12

Open
devydave wants to merge 1 commits from fail-deploy-on-invalid-version into main
Owner

closes #11

closes #11
devydave added 1 commit 2026-02-20 14:57:09 +00:00
decentral1se reviewed 2026-02-20 16:55:26 +00:00
@ -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=$?
Owner

The indentation is borked? It doesn't need to be on the same level as the && \ ... line?

The indentation is borked? It doesn't need to be on the same level as the `&& \ ...` line?
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fail-deploy-on-invalid-version:fail-deploy-on-invalid-version
git checkout fail-deploy-on-invalid-version
Sign in to join this conversation.
No description provided.