summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-27 10:57:05 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-27 10:57:05 +0200
commit2d7dd4be132fa90965017ae46a16009cd67cdf8c (patch)
treec45f9b4a240a1833ab0664b805f16bba6147bf01 /check
parentf512cd4bf30bb48a498a4fbca422ff77a50a2508 (diff)
downloadobnam2-2d7dd4be132fa90965017ae46a16009cd67cdf8c.tar.gz
fix: how ./check looks for subcommands
Diffstat (limited to 'check')
-rwxr-xr-xcheck4
1 files changed, 2 insertions, 2 deletions
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