Module: check_mk
Branch: master
Commit: fecceec38dc6e2a27ebefc84a5892b2d158d1f58
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fecceec38dc6e2…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Oct 18 10:45:28 2016 +0200
Avoid error message in case of empty spool directory.
---
agents/check_mk_agent.linux | 1 +
1 file changed, 1 insertion(+)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 9844231..6a5eaeb 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -1033,6 +1033,7 @@ then
for file in *
do
+ test "$file" = "*" && break
# output every file in this directory. If the file is prefixed
# with a number, then that number is the maximum age of the
# file in seconds. If the file is older than that, it is ignored.