mirror of
https://github.com/limosek/zaf.git
synced 2024-11-22 02:19:06 +01:00
Repaired show plugin
This commit is contained in:
parent
1ea7d93cd8
commit
efd52abc62
@ -197,23 +197,29 @@ zaf_list_plugin_items() {
|
|||||||
p=$(zaf_ctrl_get_item_option $cfile $i "Parameters")
|
p=$(zaf_ctrl_get_item_option $cfile $i "Parameters")
|
||||||
testparms=$(zaf_ctrl_get_item_option $cfile $i "Testparameters")
|
testparms=$(zaf_ctrl_get_item_option $cfile $i "Testparameters")
|
||||||
precache=$(zaf_ctrl_get_item_option $cfile $i "Precache")
|
precache=$(zaf_ctrl_get_item_option $cfile $i "Precache")
|
||||||
if [ -n "$p" ]; then
|
case $2 in
|
||||||
if [ -n "$testparms" ] && [ "$2" = "test" ]; then
|
test)
|
||||||
for tp in $testparms; do
|
for tp in $testparms; do
|
||||||
|
if [ -n "$p" ]; then
|
||||||
echo -n "$1.$i[$tp] "
|
echo -n "$1.$i[$tp] "
|
||||||
done
|
|
||||||
else
|
else
|
||||||
if [ -n "$precache" ] && [ "$2" = "precache" ]; then
|
echo -n "$1.$i "
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
precache)
|
||||||
for tp in $precache; do
|
for tp in $precache; do
|
||||||
echo -n "$1.$i[$tp] "
|
echo -n "$1.$i[$tp] "
|
||||||
done
|
done
|
||||||
fi
|
;;
|
||||||
[ "$2" != "test" ] && key="$1.$i[]"
|
*)
|
||||||
fi
|
if [ -n "$p" ]; then
|
||||||
|
echo -n "$1.$i[] "
|
||||||
else
|
else
|
||||||
key="$1.$i"
|
echo -n "$1.$i "
|
||||||
fi
|
fi
|
||||||
[ "$2" != "precache" ] && echo -n "$key "
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user