mirror of
https://github.com/limosek/zaf.git
synced 2024-11-14 06:29:07 +01:00
Repaired function plugin_version
This commit is contained in:
parent
c0bbe2e30e
commit
4964988b36
@ -261,16 +261,18 @@ zaf_discovery_plugins() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
zaf_plugin_version() {
|
zaf_plugin_version() {
|
||||||
|
local plugindir
|
||||||
|
local cfile
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Missing plugin name";
|
zaf_err "Missing plugin name.";
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
plugindir="${ZAF_PLUGINS_DIR}/$1"
|
if zaf_is_plugin "$1"; then
|
||||||
cfile="$plugindir/control"
|
plugindir="${ZAF_PLUGINS_DIR}/$1"
|
||||||
if [ -d "$plugindir" ] ; then
|
cfile="$plugindir/control.zaf"
|
||||||
zaf_ctrl_get_option "$cfile" Version
|
zaf_ctrl_get_global_option $cfile Version
|
||||||
else
|
else
|
||||||
echo "Plugin $1 not installed"
|
zaf_err "Plugin $1 not installed."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user