Fix install log for nextest

This commit is contained in:
Taiki Endo
2022-07-25 19:47:04 +09:00
parent 6eaed8fc4e
commit aae9c8b0a3

View File

@@ -140,6 +140,7 @@ for tool in "${tools[@]}"; do
version="latest" version="latest"
fi fi
tool="${tool%@*}" tool="${tool%@*}"
bin="${tool}${exe}"
info "installing ${tool}@${version}" info "installing ${tool}@${version}"
case "${tool}" in case "${tool}" in
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog) cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
@@ -187,6 +188,7 @@ for tool in "${tools[@]}"; do
download "${url}" "${cargo_bin}" "${tool}${exe}" download "${url}" "${cargo_bin}" "${tool}${exe}"
;; ;;
nextest) nextest)
bin="cargo-nextest"
# https://nexte.st/book/pre-built-binaries.html # https://nexte.st/book/pre-built-binaries.html
case "${OSTYPE}" in case "${OSTYPE}" in
linux*) linux*)
@@ -344,9 +346,9 @@ for tool in "${tools[@]}"; do
;; ;;
esac esac
info "${tool} installed at $(type -P "${tool}")" info "${tool} installed at $(type -P "${bin}")"
case "${tool}" in case "${bin}" in
cargo-* | nextest) x cargo "${tool#cargo-}" --version ;; cargo-*) x cargo "${tool#cargo-}" --version ;;
*) x "${tool}" --version ;; *) x "${tool}" --version ;;
esac esac
echo echo