From d650b580d2c24f0e4b6e0b844bbc44bbe3056026 Mon Sep 17 00:00:00 2001 From: Neal Date: Wed, 16 Sep 2026 13:13:11 -0400 Subject: [PATCH] errors file is always generated; only check if there are errors --- exe/findingaid-cache-regen/fa-full-regen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exe/findingaid-cache-regen/fa-full-regen b/exe/findingaid-cache-regen/fa-full-regen index e0006ac..a990650 100755 --- a/exe/findingaid-cache-regen/fa-full-regen +++ b/exe/findingaid-cache-regen/fa-full-regen @@ -76,8 +76,8 @@ done printf '\n' # Missing EADs are a data condition, not a failed run, so report and exit 0. -if [ -s "$ERRORS_FILE" ]; then - MISSING=$(wc -l < "$ERRORS_FILE") +MISSING=$(wc -l < "$ERRORS_FILE") +if [ "$MISSING" -gt 0 ]; then if [ "$VERBOSE" -eq 1 ]; then echo "$MISSING of $FOUND finding aids could not be regenerated:" >&2 cat "$ERRORS_FILE" >&2