diff options
Diffstat (limited to 'bin/nwatch')
-rwxr-xr-x | bin/nwatch | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -53,7 +53,11 @@ fi # If the link to the XML file is legible, run the diff or give up if [[ -r ${latest}.xml ]] ; then - if ! ndiff -- "$latest".xml "$cache".xml > "$diff" ; then + ndiff -- "$latest".xml "$cache".xml > "$diff" + + # Because we always want a report, only exit if an actual error condition + # (1 means there's a meaningful diff in the scans) + if (($? == 2)) ; then exit fi fi |