+#!/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: