From 38993e68cce813a8e5a9d971eec896007471c139 Mon Sep 17 00:00:00 2001 From: Mike Beaumont Date: Sun, 9 Aug 2020 22:33:02 +0200 Subject: [PATCH] Fix watson-notify when no project is active I suppose at some point a `.` was added. --- watson-notify | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watson-notify b/watson-notify index f27de06..ffb9d33 100755 --- a/watson-notify +++ b/watson-notify @@ -139,9 +139,9 @@ function notify { $WATSON_STATUS | sed -r ' s!^Project !!g; - s!([^ ]+).+started .* ago \(([^)]+)\)!\1 \2!g + s!([^ ]+).+started[.]? .* ago \(([^)]+)\)!\1 \2!g ' | while read name date; do - if [ $name == "No" -a "$date" == "project started" ] ; then + if [ $name == "No" -a "$date" == "project started." ] ; then $NOTIFY $QUESTION_NOTIF "Watson" "$QUESTION_MESSAGE" exit 0 fi