X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=caddy%2Finstall.sh;h=f59c42a1fb410d03000f305a8de9cca0de1d7b17;hb=ca7a838c6fde6052124947ff442aa9e6056f5e28;hp=c0980b99e45e287858b39db0f5bbbeaa87e2c819;hpb=704265583cff80363fec60c4088f5b91f6d98bd0;p=webi-installers%2F.git diff --git a/caddy/install.sh b/caddy/install.sh index c0980b9..f59c42a 100644 --- a/caddy/install.sh +++ b/caddy/install.sh @@ -14,7 +14,7 @@ pkg_cmd_name="caddy" # IMPORTANT: this let's other functions know to expect this to be a single file WEBI_SINGLE=true -pkg_get_current_version() { +function pkg_get_current_version() { # 'caddy version' has output in this format: # v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8= # This trims it down to just the version number: @@ -22,7 +22,7 @@ pkg_get_current_version() { echo "$(caddy version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')" } -pkg_install() { +function pkg_install() { # $HOME/.local/opt/caddy-v2.1.0/bin mkdir -p "$pkg_src_bin" @@ -33,7 +33,7 @@ pkg_install() { chmod a+x "$pkg_src_cmd" } -pkg_link() { +function pkg_link() { # rm -f "$HOME/.local/bin/caddy" rm -f "$pkg_dst_cmd"