We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245127e commit 87ce341Copy full SHA for 87ce341
Makefile
@@ -6,8 +6,7 @@ dev:
6
hugo server -D --noHTTPCache --disableFastRender --ignoreCache
7
8
update:
9
- CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
10
- $(eval VERSION := $(shell hugo version | grep -oP '\d+\.\d+\.\d+'))
+ $(eval VERSION := $(shell CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest && hugo version | grep -oP '\d+\.\d+\.\d+'))
11
@echo New version: $(VERSION) Old Version: $(HUGO_VERSION)
12
@sed -i 's/\(^HUGO_VERSION := \).*/\1 $(VERSION)/' Makefile
13
0 commit comments