From 40af4955bb3a0a12b0243002408fd362c5ff32d2 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 18 Jun 2021 17:44:33 +0200 Subject: [PATCH] more printout --- threadwatcher | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/threadwatcher b/threadwatcher index d2de99c..fe4b968 100755 --- a/threadwatcher +++ b/threadwatcher @@ -40,6 +40,8 @@ makepathabsolute(){ } scan(){ + [ -f /tmp/threadwatcher.lock ] && [ "$(pgrep -c threadwatcher)" -gt 1 ] && + echo "Threadwatcher already scanning... waiting for it to finish before rescanning." while [ -f /tmp/threadwatcher.lock ] && [ "$(pgrep -c threadwatcher)" -gt 1 ]; do sleep 1 done @@ -47,9 +49,9 @@ scan(){ touch /tmp/threadwatcher.lock ping -q -c 1 4channel.org > /dev/null|| { echo "Cannot connect to 4chan."; exit 1;} if [ "$(wc -l < "$URLFILE")" -gt 0 ]; then - echo "scanning threads..." + echo "Scanning threads..." else - echo "no threads to watch over currently" + echo "No threads to watch over currently." exit fi