1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

systemd_units: add doublequote around $extinfo

This commit is contained in:
Tomaz Solc 2016-10-27 17:54:01 +02:00
parent adc0072286
commit 38835f7a62

View file

@ -64,9 +64,9 @@ fetch () {
for state in $states ; do
count=$(echo "$tmp" | grep -c "$state$")
echo "$state.value $count"
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1)
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr -d '\n')
if [ -n "$extinfo" ]; then
echo "$state.extinfo" $extinfo
echo "$state.extinfo" "$extinfo"
fi
done
}