diff options
author | erdgeist <> | 2013-09-25 01:00:53 +0000 |
---|---|---|
committer | erdgeist <> | 2013-09-25 01:00:53 +0000 |
commit | a75a849bdf5f542e2876957a84a10f0b1cf64846 (patch) | |
tree | 82ce844738bbaf0d3ed1fa7f6a575e70cfa79a26 | |
parent | 6118cbee11271be828e47dc2c051cc37ac48ac32 (diff) |
When looking for a named plugin, also accept soft links
-rwxr-xr-x | minimunin | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -319,7 +319,7 @@ env_for_plugin_from_config() { | |||
319 | 319 | ||
320 | call_plugin() { | 320 | call_plugin() { |
321 | _param=$2 | 321 | _param=$2 |
322 | _plug=`/usr/bin/find ${PLUGIN_DIR} -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 ${_plug} ) |