X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fhugo.sh;fp=resources%2Flibraries%2Fbash%2Ffunction%2Fhugo.sh;h=bb749bcf013ea445a835e9dff9affb9faacaa06b;hp=b2e4387eddb063e39cfe1655e5722ffacc681240;hb=65c15b21ee45ff171b0a0d6b61ed5996228cbe71;hpb=12992a674d186f437bd29b854c0031a092097def diff --git a/resources/libraries/bash/function/hugo.sh b/resources/libraries/bash/function/hugo.sh index b2e4387edd..bb749bcf01 100644 --- a/resources/libraries/bash/function/hugo.sh +++ b/resources/libraries/bash/function/hugo.sh @@ -65,13 +65,11 @@ function hugo_init_modules () { # - die - Print to stderr and exit. if ! installed hugo; then - #die "Please install Hugo!" - go_install || die "Failed to install Go!" - hugo_install || die "Failed to install Hugo!" - terraform_install || die "Failed to install Terraform!" + die "Please install Hugo!" fi pushd "${CSIT_DIR}"/docs || die "Pushd failed!" + export PATH=$PATH:/usr/local/go/bin hugo mod get -u || die "Failed to run Hugo mod!" popd || die "Popd failed!" }