|
|
|
@ -18,8 +18,19 @@
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# setup hugo
|
|
|
|
|
HUGO_REPO=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_Linux-64bit.tar.gz
|
|
|
|
|
HUGO_ARTIFACT=hugo_extended_0.110.0_Linux-64bit.tar.gz
|
|
|
|
|
|
|
|
|
|
# Detect Operating System
|
|
|
|
|
OS="Linux"
|
|
|
|
|
[[ "$OSTYPE" == "darwin"* ]] && OS="Mac"
|
|
|
|
|
|
|
|
|
|
# Setup Hugo based on OS
|
|
|
|
|
if [ "$OS" = "Mac" ]; then
|
|
|
|
|
HUGO_ARTIFACT="hugo_extended_0.110.0_darwin-universal.tar.gz"
|
|
|
|
|
else
|
|
|
|
|
HUGO_ARTIFACT="hugo_extended_0.110.0_Linux-64bit.tar.gz"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
HUGO_REPO="https://github.com/gohugoio/hugo/releases/download/v0.110.0/${HUGO_ARTIFACT}"
|
|
|
|
|
if ! curl --fail -OL $HUGO_REPO ; then
|
|
|
|
|
echo "Failed to download Hugo binary"
|
|
|
|
|
exit 1
|
|
|
|
|