Skip to content

Commit 5e4972c

Browse files
fix condition for os
Signed-off-by: Harshita-Kanal <[email protected]>
1 parent b3a0ddd commit 5e4972c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,18 @@ install-hugo:
3939
ifeq ($(OS),Windows_NT)
4040
@echo $(shell uname -s) ;
4141
cd tools; mkdir bin; cd bin; curl -s -L -O $(shell curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[30].browser_download_url')
42+
endif
43+
44+
ifeq ($(shell uname -s),Darwin)
45+
@echo $(shell uname -s)
46+
cd tools; mkdir bin; cd bin; curl -s -L -O $(shell curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[28].browser_download_url'); tar xvfz hugo_extended_${_latestver}_macOS-64bit.tar.gz
4247
else
43-
ifeq ($(shell uname -s),Darwin)
44-
@echo $(shell uname -s)
45-
cd tools; mkdir bin; cd bin; curl -s -L -O $(shell curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[28].browser_download_url'); tar xvfz hugo_extended_${_latestver}_macOS-64bit.tar.gz
46-
else
47-
@echo $(shell uname -s)
48-
cd tools; mkdir bin; cd bin; curl -s -L -O $(shell curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[27].browser_download_url'); tar xvfz hugo_extended_${_latestver}_Linux-64bit.tar.gz
49-
endif
48+
@echo $(shell uname -s)
49+
cd tools; mkdir bin; cd bin; curl -s -L -O $(shell curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[27].browser_download_url'); tar xvfz hugo_extended_${_latestver}_Linux-64bit.tar.gz
5050
endif
5151

5252

53+
5354

5455

5556
.PHONY: upgrade-pack
@@ -93,7 +94,7 @@ serve: install-hugo pack-version pack-docs-update
9394
ifeq ($(BASE_URL),)
9495
$(HUGO_BIN) server --disableFastRender --port=$(SERVE_PORT)
9596
else
96-
$(HUGO_BIN) server --disableFastRender --port=$(SERVE_PORT) --baseURL=$(BASE_URL) --appendPort=false
97+
hugo server --disableFastRender --port=$(SERVE_PORT) --baseURL=$(BASE_URL) --appendPort=false
9798
endif
9899

99100
.PHONY: build

0 commit comments

Comments
 (0)