Module: check_mk
Branch: master
Commit: 220042de914de3af6050f3f16cb98314c847093c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=220042de914de3…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Feb 6 11:32:53 2018 +0100
Fixed ShellCheck problem SC2068.
Double quote array expansions, otherwise they're like $* and break on
spaces, see
https://github.com/koalaman/shellcheck/wiki/SC2068.
Change-Id: Id7e2a8883a73555d214e45ce40727b7bc2e0942c
---
agents/mk-job | 2 +-
agents/plugins/mk_oracle_asm | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/mk-job b/agents/mk-job
index 342df2b..5328154 100755
--- a/agents/mk-job
+++ b/agents/mk-job
@@ -67,7 +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 $?
fi
diff --git a/agents/plugins/mk_oracle_asm b/agents/plugins/mk_oracle_asm
index 400d93c..c29b739 100755
--- a/agents/plugins/mk_oracle_asm
+++ b/agents/plugins/mk_oracle_asm
@@ -31,7 +31,7 @@ if [ ! -e $MK_CONFDIR/asmcmd.sh ]; then
fi
function asmcmd () {
- $MK_CONFDIR/asmcmd.sh $@
+ $MK_CONFDIR/asmcmd.sh "$@"
}
echo "<<<oracle_asm_diskgroup>>>"