From a4e2a0d24a04d06db8f228798c3671bd79b37846 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 1 Apr 2024 09:47:20 +0900 Subject: [PATCH] Fix version output --- main.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 43ed61ac0..64e59621c 100755 --- a/main.sh +++ b/main.sh @@ -707,7 +707,8 @@ for tool in "${tools[@]}"; do case "${tool_bin_stem}" in # biome up to 1.2.2 exits with 1 on both --version and --help flags. # cargo-machete up to 0.6.0 does not support --version flag. - biome | cargo-machete) rx "${tool_bin_stem}" --version || true ;; + biome) rx "${tool_bin_stem}" --version || true ;; + cargo-machete) rx "${tool_bin_stem}" "${tool_bin_stem#cargo-}" --version || true ;; # these packages support neither --version nor --help flag. cargo-careful | wasm-bindgen-test-runner) ;; # wasm2es6js does not support --version flag and --help flag doesn't contains version info.