Module: check_mk
Branch: master
Commit: db4e484e07ec29ab8fa85052f510afe1ee98bf3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=db4e484e07ec29…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 6 11:47:11 2018 +0100
Fixed ShellCheck problem SC2104
In functions, use return instead of continue, see
https://github.com/koalaman/shellcheck/wiki/SC2104.
This has been broken since f0843d4bfb6, which landed a few years ago.
Change-Id: I3c36b977615fcae730379bd3b1a86d2f7193c3a4
---
agents/plugins/mk_oracle | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/agents/plugins/mk_oracle b/agents/plugins/mk_oracle
index 26f658b..023caec 100755
--- a/agents/plugins/mk_oracle
+++ b/agents/plugins/mk_oracle
@@ -1200,13 +1200,10 @@ function do_instance() {
if [ "$DEBUGCONNECT" ] ; then
do_testmode $SID
- # do not execute any check
- continue
+ else
+ do_sync_checks $SID "$SECTIONS"
+ run_cached oracle_$SID $CACHE_MAXAGE do_async_checks $SID
fi
-
- do_sync_checks $SID "$SECTIONS"
- run_cached oracle_$SID $CACHE_MAXAGE do_async_checks $SID
-
}
#.