summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck5
1 files changed, 4 insertions, 1 deletions
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