Add igrep, rustup to install_tool

This commit is contained in:
David Tomaschik
2023-01-13 11:05:25 -08:00
parent 193b22e0d1
commit ba9534577a

View File

@@ -502,6 +502,17 @@ EOF
tar -C "${DESTDIR}" -zxf /tmp/doctl.tar.gz "doctl"
add_bin_symlink doctl
;;
rustup)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- --no-modify-path -y
;;
igrep)
if ! command -v cargo >/dev/null 2>&1 ; then
echo "This needs cargo (for rust)!" >/dev/stderr
exit 1
fi
cargo install igrep
;;
*)
echo "Unknown tool: ${TOOL}" >/dev/stderr
list_tools