log messages require .txt

This commit is contained in:
James Tomasino 2018-11-27 00:09:21 -05:00
parent 3663a067cf
commit 27bad0b73e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ check_log () {
# compare against files in ship directory
# store list of unpublished logs
logs=$(grep "^0${ship}" "/var/gopher/listing.gophermap" | awk -F'\t' '{print $2}')
files=$(find "/var/gopher/$ship" -not -path '*/\.*' -type f | sed 's|/var/gopher||')
files=$(find "/var/gopher/$ship" -name "*.txt" -not -path '*/\.*' -type f | sed 's|/var/gopher||')
uniq=$(printf "%s\\n%s" "$logs" "$files" | sort | uniq -u)
if [ -z "$uniq" ]; then