mirror of
https://github.com/limosek/zaf.git
synced 2024-11-13 05:59:06 +01:00
Plugins can be entered divided by comas
This commit is contained in:
parent
25d47e6ba8
commit
2e8a27e6ac
@ -338,7 +338,7 @@ zaf_configure(){
|
||||
zaf_set_option ZAF_ZBXAPI_PASS "$ZAF_ZBXAPI_PASS"
|
||||
zaf_set_option ZAF_ZBXAPI_AUTHTYPE "$ZAF_ZBXAPI_AUTHTYPE"
|
||||
if [ -n "$ZAF_PLUGINS" ]; then
|
||||
for p in $ZAF_PLUGINS; do
|
||||
for p in $(echo $ZAF_PLUGINS | tr ',' ' '); do
|
||||
zaf_install_plugin $p
|
||||
done
|
||||
fi
|
||||
|
@ -86,7 +86,7 @@ zaf_prepare_plugin() {
|
||||
fi
|
||||
zaf_install_dir "$plugindir"
|
||||
zaf_dbg "Fetching control file from $url ..."
|
||||
if zaf_fetch_url "$url" >"${INSTALL_PREFIX}/${control}"; then
|
||||
if zaf_fetch_url "$url" >"${INSTALL_PREFIX}/${control}" && [ -s "${INSTALL_PREFIX}/${control}" ]; then
|
||||
[ -z "${INSTALL_PREFIX}" ] && zaf_ctrl_check_deps "${control}"
|
||||
pluginname=$(zaf_ctrl_get_global_block <"${INSTALL_PREFIX}/${control}" | zaf_block_get_option Plugin)
|
||||
[ "$(basename $plugindir)" != "$pluginname" ] && zaf_err "prepare_plugin: Plugin name mismach ($plugindir vs ${INSTALL_PREFIX}/${control})!"
|
||||
|
Loading…
Reference in New Issue
Block a user