X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=fzf%2Finstall.sh;h=eb865770d15a16691fe1e7490392b2c3ee5bbe92;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=392fe8c8817bd1fd16573f2fe4c48345b09f7292;hpb=e2ade2382b346024c0f74092263230b488bf80e4;p=webi-installers%2F.git diff --git a/fzf/install.sh b/fzf/install.sh index 392fe8c..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,15 +11,15 @@ 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() { - # $HOME/.local/xbin + # $HOME/.local/bin mkdir -p "$pkg_src_bin" # mv ./fzf* "$HOME/.local/opt/fzf-v0.21.1/bin/fzf" @@ -29,3 +29,5 @@ chmod a+x "$pkg_src_cmd" } } + +__init_fzf