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