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:
parent
adc0072286
commit
38835f7a62
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue