summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-07 20:49:18 +0200
committerErich Eckner <git@eckner.net>2019-03-18 19:50:26 +0100
commit902db8ba62def6d04c00fd3b54ed6c4bfff796a6 (patch)
tree0cf271cdbdc11a7b55116964d225274d67cf8209
parent01b90657af735aadd324fde645e015e3f64a97ca (diff)
downloadlogwatch-extra-902db8ba62def6d04c00fd3b54ed6c4bfff796a6.tar.xz
doalogwatch: bugfix
-rwxr-xr-xdoalogwatch.in2
1 files changed, 1 insertions, 1 deletions
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