summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-03-24 16:32:17 -0400
committerGitHub <noreply@github.com>2023-03-24 16:32:17 -0400
commitc5cfc085557d8fc6623d321c59c5f45d28d567d0 (patch)
treed3b157a625e565b2e394a7c1c283ae6954a0e68c /Makefile
parent023e61e678dc353fa6c9b0299c37f48e98a3c7af (diff)
downloadgitea-c5cfc085557d8fc6623d321c59c5f45d28d567d0.tar.gz
gitea-c5cfc085557d8fc6623d321c59c5f45d28d567d0.zip
ensure go/bin path exists when copying hugo bin into it (#23692)
follow up of https://github.com/go-gitea/gitea/pull/23686 path does not exist during static pipeline, and fails out (example: https://drone.gitea.io/go-gitea/gitea/70587/1/5 )
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5538c01d3d..fb436b1ca8 100644
--- a/Makefile
+++ b/Makefile
@@ -823,7 +823,7 @@ docs: deps-docs
.PHONY: deps-docs
deps-docs:
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
- curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \
+ curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mkdir -p ~/go/bin && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \
fi
.PHONY: deps