Skip to content

Commit c5cfc08

Browse files
ensure go/bin path exists when copying hugo bin into it (#23692)
follow up of #23686 path does not exist during static pipeline, and fails out (example: https://drone.gitea.io/go-gitea/gitea/70587/1/5 )
1 parent 023e61e commit c5cfc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ docs: deps-docs
823823
.PHONY: deps-docs
824824
deps-docs:
825825
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
826-
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; \
826+
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; \
827827
fi
828828

829829
.PHONY: deps

0 commit comments

Comments
 (0)