From 2d7dd4be132fa90965017ae46a16009cd67cdf8c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 27 Mar 2021 10:57:05 +0200 Subject: fix: how ./check looks for subcommands --- check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check') diff --git a/check b/check index 5f7184d..e463ca2 100755 --- a/check +++ b/check @@ -17,11 +17,11 @@ fi got_cargo_cmd() { - cargo --list | grep " $1 " > /dev/null + cargo "$1" --help > /dev/null } -$hideok cargo build --all-targets got_cargo_cmd clippy && cargo clippy -q --all-targets +$hideok cargo build --all-targets got_cargo_cmd fmt && $hideok cargo fmt -- --check $hideok cargo test -- cgit v1.2.1