From 27bad0b73ed7c6a92f3622bdc3eeadf336ea458e Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Tue, 27 Nov 2018 00:09:21 -0500 Subject: [PATCH] log messages require .txt --- bin/cosmic-log | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cosmic-log b/bin/cosmic-log index 497a96e..16edc69 100755 --- a/bin/cosmic-log +++ b/bin/cosmic-log @@ -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