File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ main() {
1414 rm -rf dart-sass*
1515
1616 # Install Hugo
17- echo " Installing Hugo version $Hugo_VERSION ..."
18- curl -LJO " https://github.com/gohugoio/hugo/releases/download/v$Hugo_VERSION /hugo_extended_$Hugo_VERSION_linux -amd64.tar.gz"
19- tar -xzf " hugo_extended_$Hugo_VERSION_linux -amd64.tar
17+ echo " Installing Hugo v ${HUGO_VERSION} ..."
18+ curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION} /hugo_extended_${HUGO_VERSION} _linux -amd64.tar.gz
19+ tar -xf " hugo_extended_${HUGO_VERSION} _linux -amd64.tar.gz "
2020 cp hugo /opt/buildhome
21- rm LICENSE.txt README.md hugo_extended_$Hugo_VERSION_linux -amd64.tar.gz
21+ rm LICENSE README.md hugo_extended_${HUGO_VERSION} _linux-amd64.tar.gz
22+
2223
2324 # Set PATH
2425 echo " Setting the PATH environment variable..."
@@ -31,8 +32,9 @@ main() {
3132 echo Node.js version: " $( node -v) "
3233 echo NPM version: " $( npm -v) "
3334
34- echo " Clone Toha theme..."
35- git submodule update --init --recursive
35+ # https://gohugo.io/methods/page/gitinfo/#hosting-considerations
36+ git fetch --recurse-submodules --unshallow
37+
3638 git config core.quotepath false
3739
3840 echo " Building site..."
You can’t perform that action at this time.
0 commit comments