From 902db8ba62def6d04c00fd3b54ed6c4bfff796a6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 7 Aug 2017 20:49:18 +0200 Subject: doalogwatch: bugfix --- doalogwatch.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doalogwatch.in b/doalogwatch.in index ab29607..a70e01a 100755 --- a/doalogwatch.in +++ b/doalogwatch.in @@ -17,7 +17,7 @@ warteAufFile="#WAITDIR#/logwatch" [ -r "${warteAufFile}" ] && \ ps aux | \ awk '{print $2" "$(NF)}' | \ - grep -q "^$(cat "${warteAufFile}") \(\S*/\)\?doalogwatch\$" && \ + grep -q "^\s*$(cat "${warteAufFile}") \(\S*/\)\?doalogwatch\$" && \ exit 0 if [ -d "${warteAufFile%/*}" ]; then -- cgit v1.2.3-54-g00ecf