summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2013-09-25 01:08:09 +0000
committererdgeist <>2013-09-25 01:08:09 +0000
commitd6aa9dc0d6f76d433e80c441b9f871ff149307fb (patch)
tree3910a2f7cfa221dc81380bb12db143493bd161de
parenta75a849bdf5f542e2876957a84a10f0b1cf64846 (diff)
parameters should not contain the whole path
-rwxr-xr-xminimunin2
1 files changed, 1 insertions, 1 deletions
diff --git a/minimunin b/minimunin
index 05b3b62..950c0e8 100755
--- a/minimunin
+++ b/minimunin
@@ -322,7 +322,7 @@ call_plugin() {
322 _plug=`/usr/bin/find ${PLUGIN_DIR} \( -type l -or -type f \) -perm +111 -name $1 2>/dev/null | /usr/bin/head -n 1` 322 _plug=`/usr/bin/find ${PLUGIN_DIR} \( -type l -or -type f \) -perm +111 -name $1 2>/dev/null | /usr/bin/head -n 1`
323 [ -z "${_plug}" ] && return 1 323 [ -z "${_plug}" ] && return 1
324 324
325 _env=$( printf "%s\n" "${CONFIGS}" | env_for_plugin_from_config ${_plug} ) 325 _env=$( printf "%s\n" "${CONFIGS}" | env_for_plugin_from_config $1 )
326 eval env ${_env} ${_plug} ${_param} 326 eval env ${_env} ${_plug} ${_param}
327 return $? 327 return $?
328} 328}