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

systemd_units: fix indent

This commit is contained in:
Tomaz Solc 2016-10-27 17:51:33 +02:00
parent a2f1592fe5
commit a9476f50fd

View File

@ -61,15 +61,14 @@ EOF
fetch () {
tmp=$(systemctl --no-pager --no-legend --all | awk '{print $1, $3}')
for state in \
$states ; do
echo -n "$state.value "
echo "$tmp" | grep -c "$state$"
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1)
if [ -n "$extinfo" ]; then
echo "$state.extinfo" $extinfo
fi
done
for state in $states ; do
echo -n "$state.value "
echo "$tmp" | grep -c "$state$"
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1)
if [ -n "$extinfo" ]; then
echo "$state.extinfo" $extinfo
fi
done
}
case $1 in