More install_tool updates

This commit is contained in:
David Tomaschik
2025-09-03 11:08:39 -07:00
parent ae344d6dba
commit 7064a5d5a1

View File

@@ -378,18 +378,18 @@ EOF
tmpmail) tmpmail)
install_pkgs curl w3m jq install_pkgs curl w3m jq
mkdir -p "${DESTDIR}" mkdir -p "${DESTDIR}"
curl -L "https://git.io/tmpmail" > "${DESTDIR}"/tmpmail download "https://git.io/tmpmail" "${DESTDIR}/tmpmail"
chmod +x "${DESTDIR}"/tmpmail chmod +x "${DESTDIR}/tmpmail"
add_bin_symlink tmpmail add_bin_symlink tmpmail
;; ;;
gf) gf)
install_pkgs golang-go silversearcher-ag install_pkgs golang-go silversearcher-ag
go install github.com/tomnomnom/gf@latest go install github.com/tomnomnom/gf@latest
mkdir -p "${HOME}"/.config mkdir -p "${HOME}/.config"
if test -d "${HOME}"/.config/gf ; then if test -d "${HOME}/.config/gf" ; then
git -C "${HOME}"/.config/gf pull git -C "${HOME}/.config/gf" pull
else else
git clone https://github.com/Matir/gf-patterns.git "${HOME}"/.config/gf git clone https://github.com/Matir/gf-patterns.git "${HOME}/.config/gf"
fi fi
;; ;;
gron) gron)
@@ -410,8 +410,8 @@ EOF
cht.sh) cht.sh)
install_pkgs rlwrap install_pkgs rlwrap
mkdir -p "${DESTDIR}" mkdir -p "${DESTDIR}"
curl https://cht.sh/:cht.sh > "${DESTDIR}"/cht.sh download "https://cht.sh/:cht.sh" "${DESTDIR}/cht.sh"
chmod +x "${DESTDIR}"/cht.sh chmod +x "${DESTDIR}/cht.sh"
add_bin_symlink cht.sh add_bin_symlink cht.sh
;; ;;
age) age)
@@ -508,8 +508,9 @@ EOF
add_bin_symlink doctl add_bin_symlink doctl
;; ;;
rustup) rustup)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ rustup_init="${TMPDIR}/rustup-init.sh"
sh -s -- --no-modify-path -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o "${rustup_init}"
sh "${rustup_init}" --no-modify-path -y
;; ;;
igrep) igrep)
if ! command -v cargo >/dev/null 2>&1 ; then if ! command -v cargo >/dev/null 2>&1 ; then