Skip to content

Commit 87ce341

Browse files
committed
fix: detect new hugo version correctly in makefile update target
1 parent 245127e commit 87ce341

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ dev:
66
hugo server -D --noHTTPCache --disableFastRender --ignoreCache
77

88
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+'))
9+
$(eval VERSION := $(shell CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest && hugo version | grep -oP '\d+\.\d+\.\d+'))
1110
@echo New version: $(VERSION) Old Version: $(HUGO_VERSION)
1211
@sed -i 's/\(^HUGO_VERSION := \).*/\1 $(VERSION)/' Makefile
1312

0 commit comments

Comments
 (0)