From 77b5142519e2d504844e7c617b03411c50c8588a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Fri, 25 Oct 2024 15:44:10 -0300 Subject: [PATCH] Add exit code --- scripts/cmp_state_dumps.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/cmp_state_dumps.sh b/scripts/cmp_state_dumps.sh index 5874e7f..5b79c89 100755 --- a/scripts/cmp_state_dumps.sh +++ b/scripts/cmp_state_dumps.sh @@ -26,3 +26,9 @@ echo echo "Finished comparison" echo "- Matching: $matching" echo "- Diffing: $diffing" + +if ! [[ $diffing -eq 0 ]] ; then + exit 1 +else + exit 0 +fi