From ce3226b4e3a94d6cc6f79ee9edf71122b13bb773 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Wed, 1 Jun 2022 17:05:05 -0700 Subject: [PATCH] verify_duplicate_crates should `exit 1` on failure --- bin/verify_duplicate_crates | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/verify_duplicate_crates b/bin/verify_duplicate_crates index 371f1f5e..95170f32 100755 --- a/bin/verify_duplicate_crates +++ b/bin/verify_duplicate_crates @@ -35,6 +35,7 @@ serde v1.0.136 serde v1.0.136" -if [[ $(cargo tree -d -e normal --workspace --locked --depth 0) != "${EXPECTED}" ]]; then +if [[ "$(cargo tree -d -e normal --workspace --locked --depth 0)" != "${EXPECTED}" ]]; then cargo tree -d -e normal --workspace --locked + exit 1 fi