summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall_rust_tools1
1 files changed, 1 insertions, 0 deletions
diff --git a/install_rust_tools b/install_rust_tools
index 910a51a..558da20 100755
--- a/install_rust_tools
+++ b/install_rust_tools
@@ -17,6 +17,7 @@ tools+=("ripgrep")
for tool in ${tools[@]}; do
installed_vers=$(cargo install --list | grep "^$tool" | awk '{ print $2 }' | sed 's/[v:]//g')
[[ ! -z $installed_vers ]] && {
+ echo "[+] $tool installed, checking version ..."
update_vers=$(cargo search --limit 1 $tool | awk 'NR==1 { print $3 }' | sed 's/"//g')
[[ $installed_vers == $update_vers ]] && { continue; }
echo ">>> update $tool $installed_vers -> $update_vers? [yYnN]"