X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=hexyl%2Finstall.sh;fp=hexyl%2Finstall.sh;h=281c6c3399bd633c87f2b5ed7cfd3cb6a8b040e8;hb=6de69579c81a75dcf85dc9af8962069b752ecba0;hp=0000000000000000000000000000000000000000;hpb=991861fcf566cb736f0f8931114889b960236558;p=webi-installers%2F.git diff --git a/hexyl/install.sh b/hexyl/install.sh new file mode 100644 index 0000000..281c6c3 --- /dev/null +++ b/hexyl/install.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +{ + set -e + set -u + + ############### + # Install hexyl # + ############### + + WEBI_SINGLE=true + + pkg_get_current_version() { + # 'hexyl --version' has output in this format: + # hexyl 0.8.0 + # This trims it down to just the version number: + # 0.8.0 + echo $(hexyl --version 2>/dev/null | head -n 1 | cut -d' ' -f 2) + } + + pkg_install() { + # $HOME/.local/ + mkdir -p "$pkg_src_bin" + + # mv ./hexyl-*/hexyl "$HOME/.local/opt/hexyl-v0.8.0/bin/hexyl-v0.8.0" + mv ./hexyl-*/hexyl "$pkg_src_cmd" + + # chmod a+x "$HOME/.local/xbin/rg-v11.1.0" + chmod a+x "$pkg_src_cmd" + } +}