2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Plugins eoc_subscribers_count: fix shellcheck issues

This commit is contained in:
Lars Kruse 2018-08-02 00:20:35 +02:00
parent 9c1689fbef
commit 45290417ab

View File

@ -17,22 +17,21 @@
#%# capabilities=autoconf
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
LISTNAME=`basename $0 | sed 's/^eoc_subscribers_count_//g' | tr '_' '@'`
LISTNAME=$(basename "$0" | sed 's/^eoc_subscribers_count_//g' | tr '_' '@')
if [ "$1" = "config" ]; then
echo 'graph_title Number of subscribers to '${LISTNAME}
echo "graph_title Number of subscribers to ${LISTNAME}"
echo 'graph_vlabel subscribers'
echo 'graph_category mailinglist'
echo 'subscribers.label subscribers'
echo 'subscribers.draw AREA'
echo 'subscribers.info Number of subscribers to the list'
echo 'subscribers.info Number of subscribers to the list'
exit 0
fi
echo -n subscribers.value\
enemies-of-carlotta --name ${LISTNAME} --list | wc -l
printf "subscribers.value %s" "$(enemies-of-carlotta --name "${LISTNAME}" --list | wc -l)"