X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=inline;f=awless%2Finstall.sh;h=db394c0bbd0f81b2e059840627de5242a168088b;hb=2e5ea286d323154705917f29a5844e91217e9236;hp=080859db2e79006dcdba218aeda70bcd09148e26;hpb=fd5ed124f1cf98ea1504f54263a5700ed3d78ed9;p=webi-installers%2F.git diff --git a/awless/install.sh b/awless/install.sh index 080859d..db394c0 100644 --- a/awless/install.sh +++ b/awless/install.sh @@ -14,15 +14,15 @@ pkg_cmd_name="awless" # 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() { # 'awless version' has output in this format: # v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8= # This trims it down to just the version number: # 2.1.0 - echo "$(awless version 2>/dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')" + echo "$(awless version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')" } -pkg_install() { +function pkg_install() { # $HOME/.local/opt/awless-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/awless" rm -f "$pkg_dst_cmd"