summaryrefslogtreecommitdiff
path: root/src/metastore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/metastore.c')
-rw-r--r--src/metastore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/metastore.c b/src/metastore.c
index 2f6d9bc..fb70834 100644
--- a/src/metastore.c
+++ b/src/metastore.c
@@ -572,7 +572,8 @@ main(int argc, char **argv)
switch (action) {
case ACTION_DIFF:
- mentries_compare(real, stored, compare_print, &settings);
+ if (mentries_compare(real, stored, compare_print, &settings) > 0)
+ exit(EXIT_DIFFERENCES);
break;
case ACTION_SAVE:
mentries_tofile(real, settings.metafile, settings.format);