X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F40_search.sh;h=038545711b5f2143bfb04e82f3635b2b93b97996;hb=e9bb2b8721a5a47baa5b41ddead1238ea2a23221;hp=a4d91a82a8fa5e0f3861bf48f93ce6ac6fb1060b;hpb=81b5d834ef1762196d80ff0a8b1af1ef3f89889c;p=shellwiki diff --git a/handlers/40_search.sh b/handlers/40_search.sh index a4d91a8..0385457 100644 --- a/handlers/40_search.sh +++ b/handlers/40_search.sh @@ -69,7 +69,7 @@ for w in ${words}; do while read date doc freq num total; do P="$_DATA/pages$(UNSTRING "$doc")" d="$(stat -c %Y -- "$P/#index.flag" 2>&-)" - [ "$d" -le "$date" ] 2>&- || continue + [ "$d" -le "$date" -a -f "$P/#page.md" ] 2>&- || continue printf '%s %f\n' "$doc" "$freq" done <"$I/$w"