summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-10 09:23:16 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-10 09:23:16 +0200
commitffd02914bdbb1a07250992ccb41251e17959bfa5 (patch)
tree6f48510c17b003f3ce4c572890e338bb3a399ac8 /check
parente9b0671dbc59995017bc6129bff3264014561ebc (diff)
downloadsubplot-ffd02914bdbb1a07250992ccb41251e17959bfa5.tar.gz
Change: run ./check in Debian package build
Diffstat (limited to 'check')
-rwxr-xr-xcheck5
1 files changed, 4 insertions, 1 deletions
diff --git a/check b/check
index b9a3ec6..47fe4bd 100755
--- a/check
+++ b/check
@@ -14,7 +14,10 @@ docgen() {
cargo clippy -q
cargo test -q
-find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+if command -v rustfmt > /dev/null
+then
+ find src -type f -name '*.rs' -exec rustfmt --check '{}' +
+fi
for md in [^R]*.md
do