diff --git a/lib/ctrl.lib.sh b/lib/ctrl.lib.sh index 039be6e..006dced 100644 --- a/lib/ctrl.lib.sh +++ b/lib/ctrl.lib.sh @@ -216,8 +216,8 @@ zaf_ctrl_install() { done files=$(zaf_ctrl_get_global_option $2 "Install-files") for f in $files; do - zaf_fetch_url "$1/$b" >"${ZAF_TMP_DIR}/$b" - zaf_install "${ZAF_TMP_DIR}/$b" "$pdir" + zaf_fetch_url "$1/$f" >"${ZAF_TMP_DIR}/$f" + zaf_install "${ZAF_TMP_DIR}/$f" "$pdir" done true ) || zaf_err "Error during zaf_ctrl_install" @@ -245,6 +245,7 @@ zaf_ctrl_generate_items_cfg() { (set -e for i in $items; do iscript=$(zaf_stripctrl $i) + zafparams="" zaf_ctrl_get_item_option $1 $i "Parameters" >$tmpfile if [ -s "$tmpfile" ]; then ikey="$2.$i[*]" diff --git a/lib/plugin.lib.sh b/lib/plugin.lib.sh index f5ad9fd..71048d9 100644 --- a/lib/plugin.lib.sh +++ b/lib/plugin.lib.sh @@ -81,7 +81,7 @@ zaf_prepare_plugin() { url=$(zaf_get_plugin_url "$1")/control.zaf || exit $? plugindir="$2" control=${plugindir}/control.zaf - if [ "$(zaf_url_info $1)" = "path" ] && cmp -s "$url" "$control"; then + if [ "$(zaf_url_info $1)" = "path" ] && [ "$url" = "$control" ]; then zaf_err "prepare_plugin: Cannot install from itself!" fi zaf_install_dir "$plugindir"