X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=fzf%2Finstall.sh;h=7729455d982c11c5fce022c288d3e7ffafb6bad2;hb=91512157ab426c87e0a82b594620e90e324b23a3;hp=908001c63d6eadd43ed2042675cf234cd28e5aaf;hpb=9ee3af1afbb78333a74788ae1642ef539e2b80df;p=webi-installers%2F.git diff --git a/fzf/install.sh b/fzf/install.sh index 908001c..7729455 100644 --- a/fzf/install.sh +++ b/fzf/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -{ +function __init_fzf() { set -e set -u @@ -11,11 +11,11 @@ WEBI_SINGLE=true pkg_get_current_version() { - # 'fzf --version' has output in this format: - # 0.21.1 (334a4fa) - # This trims it down to just the version number: - # 0.21.1 - echo $(fzf --version 2>/dev/null | head -n 1 | cut -d' ' -f 1) + # 'fzf --version' has output in this format: + # 0.21.1 (334a4fa) + # This trims it down to just the version number: + # 0.21.1 + echo $(fzf --version 2> /dev/null | head -n 1 | cut -d' ' -f 1) } pkg_install() { @@ -29,3 +29,5 @@ chmod a+x "$pkg_src_cmd" } } + +__init_fzf