From 8dc8d8b3b9fa001d3b240ebe9ae10289620fb27f Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 10 Mar 2013 21:53:58 -0400 Subject: [PATCH] repo2html will no longer return a non-zero exit status when cref-bad is empty This bug was introduced by the last commit. --- repo2html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2html b/repo2html index 67e9466..f2ceba3 100755 --- a/repo2html +++ b/repo2html @@ -107,6 +107,6 @@ grep -f"$cref_errlog_first" "$listcache" \ 2> >( sed 's/^/[Reprocessing] /g' >&2 ) # if any invalid crefs remain, then they're bad -[ -s "$cref_errlog" ] && { +[ ! -s "$cref_errlog" ] || { echo "warning: bad cref(s); see $cref_errlog" >&2 }