X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=hexyl%2Finstall.sh;h=74e24364a522ac8bf9c86ba1570ded9a478dc5a8;hb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16;hp=a4b224d237e49dbd32a71db02f495ccde75f6847;hpb=4b487e4d4d2b75ace4f0e265a1719508cbb8a4c1;p=webi-installers%2F.git diff --git a/hexyl/install.sh b/hexyl/install.sh index a4b224d..74e2436 100644 --- a/hexyl/install.sh +++ b/hexyl/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -{ +function __init_hexyl() { set -e set -u @@ -11,11 +11,11 @@ WEBI_SINGLE=true pkg_get_current_version() { - # 'hexyl --version' has output in this format: - # hexyl 0.8.0 - # This trims it down to just the version number: - # 0.8.0 - echo $(hexyl --version 2>/dev/null | head -n 1 | cut -d' ' -f 2) + # 'hexyl --version' has output in this format: + # hexyl 0.8.0 + # This trims it down to just the version number: + # 0.8.0 + echo $(hexyl --version 2> /dev/null | head -n 1 | cut -d' ' -f 2) } pkg_install() { @@ -29,3 +29,5 @@ chmod a+x "$pkg_src_cmd" } } + +__init_hexyl