Module: check_mk
Branch: master
Commit: e30bec497b4275c705ff4c87daa2e376ae8824fa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e30bec497b4275…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Oct 10 15:33:27 2017 +0200
check_mk_agent.aix: Fix spoolfile handling
Change-Id: I7ccdbe58c105709d9887237053090576b8b01aaf
---
agents/check_mk_agent.aix | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 532b08f..42396d7 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -379,7 +379,7 @@ fi
# Agent output snippets created by cronjobs, etc.
if [ -d "$SPOOLDIR" ]
then
- pushd "$SPOOLDIR" > /dev/null
+ cd "$SPOOLDIR" > /dev/null
now=$(date +%s)
for file in *
@@ -409,5 +409,5 @@ then
# Output the file
cat "$file"
done
- popd > /dev/null
+ cd - > /dev/null
fi