Skip to content

Commit

Permalink
Don't try to run cargo binstall --version (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAD97 committed Jul 26, 2022
1 parent 9270512 commit 1dda3d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dda3d1

Please sign in to comment.