X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=fzf%2Finstall.sh;h=eb865770d15a16691fe1e7490392b2c3ee5bbe92;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=908001c63d6eadd43ed2042675cf234cd28e5aaf;hpb=9ee3af1afbb78333a74788ae1642ef539e2b80df;p=webi-installers%2F.git diff --git a/fzf/install.sh b/fzf/install.sh index 908001c..eb86577 100644 --- a/fzf/install.sh +++ b/fzf/install.sh @@ -1,8 +1,8 @@ #!/bin/bash +set -e +set -u -{ - set -e - set -u +function __init_fzf() { ############### # Install fzf # @@ -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