File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 18
18
# ###############################################################################
19
19
20
20
# setup hugo
21
- HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_Linux-64bit.tar.gz
22
- HUGO_ARTIFACT=hugo_extended_0.110.0_Linux-64bit.tar.gz
21
+
22
+ # Detect Operating System
23
+ OS=" Linux"
24
+ [[ " $OSTYPE " == " darwin" * ]] && OS=" Mac"
25
+
26
+ # Setup Hugo based on OS
27
+ if [ " $OS " = " Mac" ]; then
28
+ HUGO_ARTIFACT=" hugo_extended_0.110.0_darwin-universal.tar.gz"
29
+ else
30
+ HUGO_ARTIFACT=" hugo_extended_0.110.0_Linux-64bit.tar.gz"
31
+ fi
32
+
33
+ HUGO_REPO=" https://github.com/gohugoio/hugo/releases/download/v0.110.0/${HUGO_ARTIFACT} "
23
34
if ! curl --fail -OL $HUGO_REPO ; then
24
35
echo " Failed to download Hugo binary"
25
36
exit 1
You can’t perform that action at this time.
0 commit comments