aboutsummaryrefslogtreecommitdiff
path: root/src/hugo/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/hugo/install.sh')
-rwxr-xr-xsrc/hugo/install.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hugo/install.sh b/src/hugo/install.sh
index 778b552..c5cb628 100755
--- a/src/hugo/install.sh
+++ b/src/hugo/install.sh
@@ -106,7 +106,14 @@ if ! hugo version &> /dev/null ; then
arch="64bit"
fi
- hugo_filename="hugo_${VERSION}_Linux-${arch}.tar.gz"
+ # Install extended version of hugo if desired
+ if [ "${EXTENDED}" = "true" ]; then
+ extended="extended_"
+ else
+ extended=""
+ fi
+
+ hugo_filename="hugo_${extended}${VERSION}_Linux-${arch}.tar.gz"
curl -fsSLO --compressed "https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${hugo_filename}"
tar -xzf "$hugo_filename" -C "$installation_dir"