From bffda469c84028f454dff98ce62e7928f000bf9b Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Thu, 24 Mar 2016 20:47:24 +0100 Subject: [PATCH] Cosmetic changes --- lib/zaf.lib.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/zaf.lib.sh b/lib/zaf.lib.sh index ca9b985..eca2a7b 100644 --- a/lib/zaf.lib.sh +++ b/lib/zaf.lib.sh @@ -206,7 +206,6 @@ zaf_install_plugin() { control=${ZAF_TMP_DIR}/${plugin}/control mkdir -p "${ZAF_TMP_DIR}/${plugin}" if zaf_plugin_fetch_control "$url" "${control}"; then - set -e plugin=$(zaf_ctrl_get_option "${control}" Plugin) if [ -n "$plugin" ]; then echo Installing plugin $plugin from $url... @@ -243,8 +242,8 @@ zaf_show_installed_plugins() { cfile=${ZAF_PLUGINS_DIR}/$plugin/control echo Plugin $plugin: zaf_ctrl_get_description $cfile Plugin: - echo "Homepage:" $(zaf_ctrl_get_option $cfile Web) - echo "Maintainer:" $(zaf_ctrl_get_option $cfile Maintainer) + echo " Homepage:" $(zaf_ctrl_get_option $cfile Web) + echo " Maintainer:" $(zaf_ctrl_get_option $cfile Maintainer) echo done } @@ -273,16 +272,15 @@ zaf_show_plugin() { if [ -d "$plugindir" ] ; then echo "Plugin $1:" zaf_ctrl_get_description "$cfile" "Plugin:" - echo "Homepage:" $(zaf_ctrl_get_option $cfile Web) - echo "Maintainer:" $(zaf_ctrl_get_option $cfile Maintainer) + echo " Homepage:" $(zaf_ctrl_get_option $cfile Web) + echo " Maintainer:" $(zaf_ctrl_get_option $cfile Maintainer) items=$(zaf_list_plugin_items $1) - echo - echo "Supported items:" + echo " Supported items:" for i in $items; do if [ -n "$tst" ]; then - ${ZAF_AGENT_BIN} -t "$1.$i" + echo -n " "; ${ZAF_AGENT_BIN} -t "$1.$i" else - echo -n "$1.$i: " + echo -n " $1.$i: " fi echo zaf_ctrl_get_description "$cfile" "Item: $i";