13 pkg_get_current_version() {
14 # 'fd --version' has output in this format:
16 # This trims it down to just the version number:
18 echo $(fd --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
23 mkdir -p "$pkg_src_bin"
25 # mv ./fd-*/fd "$HOME/.local/opt/fd-v8.1.1/bin/fd"
26 mv ./fd-*/fd "$pkg_src_cmd"
28 # chmod a+x "$HOME/.local/opt/fd-v8.1.1/bin/fd"
29 chmod a+x "$pkg_src_cmd"