X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=hugo%2Finstall.sh;fp=hugo%2Finstall.sh;h=1ef628415715a02e35a7715a8264e955c66f8420;hp=fce62f4bd579d6525ca4b237c85016e5066b5579;hb=ca7a838c6fde6052124947ff442aa9e6056f5e28;hpb=704265583cff80363fec60c4088f5b91f6d98bd0 diff --git a/hugo/install.sh b/hugo/install.sh index fce62f4..1ef6284 100644 --- a/hugo/install.sh +++ b/hugo/install.sh @@ -1,10 +1,11 @@ +#!/bin/bash set -e set -u pkg_cmd_name="hugo" WEBI_SINGLE=true -pkg_get_current_version() { +function pkg_get_current_version() { # 'hugo version' has output in this format: # Hugo Static Site Generator v0.72.0-8A7EF3CF darwin/amd64 BuildDate: 2020-05-31T12:07:44Z # This trims it down to just the version number: