Don't try to run cargo binstall --version (#16)

This commit is contained in:
Christopher Durham
2022-07-25 22:30:04 -04:00
committed by GitHub
parent 92705122ed
commit 1dda3d1d7e

View File

@@ -353,6 +353,7 @@ for tool in "${tools[@]}"; do
info "${tool} installed at $(type -P "${bin}")"
case "${bin}" in
cargo-binstall) x cargo binstall | head 1 ;; # cargo binstall doesn't have a normal --version flag
cargo-*) x cargo "${tool#cargo-}" --version ;;
*) x "${tool}" --version ;;
esac