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