From b229fe2d7141a6ecb829bf341e587224ba3b8221 Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Tue, 7 Nov 2023 12:05:27 +0000 Subject: [PATCH] Use a better check for "has cargo deny been installed or not". --- .buildbot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildbot.sh b/.buildbot.sh index 21c1eb9..08b9056 100644 --- a/.buildbot.sh +++ b/.buildbot.sh @@ -18,7 +18,7 @@ PREFIX=test_install make install test -f test_install/bin/snare which cargo-deny | cargo install cargo-deny || true -if [ "X`which cargo-deny`" != "X"]; then +if cargo deny --version 2>&1 > /dev/null; then cargo-deny check license else echo "Warning: couldn't run cargo-deny" > /dev/stderr