Module: check_mk
Branch: master
Commit: 29f3fbf19c96e6167e0256f3f7dad4bd9d95b8ea
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=29f3fbf19c96e6…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 6 11:36:35 2018 +0100
Simplification
Change-Id: I6b927ff9e69eb8fd6c0f8c09144dd794f16f23a8
---
agents/mk-job | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/agents/mk-job b/agents/mk-job
index 5328154..c53b0e0 100755
--- a/agents/mk-job
+++ b/agents/mk-job
@@ -67,8 +67,7 @@ date +"start_time %s" >
"$OUTPUT_PATH/$IDENT.running" 2>/dev/null
if [ ! -w "$OUTPUT_PATH/$IDENT.running" ] ; then
# Looks like we are lacking the permissions to create this file..
# In this scenario no mk-job status file is created. We simply execute the command
- "$@"
- exit $?
+ exec "$@"
fi