From 64a17b4927c4579d25692d15a8f0669adcf82fd2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 14 Oct 2020 09:17:27 +0300 Subject: fix: only run cargo fmt, if it's available --- check | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/check b/check index deda000..53b1ee3 100755 --- a/check +++ b/check @@ -51,7 +51,10 @@ then cargo clippy $quiet fi $hideok cargo test $quiet -$hideok cargo fmt -- --check +if cargo fmt --help > /dev/null 2> /dev/null +then + $hideok cargo fmt -- --check +fi $hideok ./mktestcert test.key test.pem hunter2 -- cgit v1.2.1