mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
systemd_units: fix use of tr
This commit is contained in:
parent
38835f7a62
commit
d888c31d1d
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ fetch () {
|
||||||
for state in $states ; do
|
for state in $states ; do
|
||||||
count=$(echo "$tmp" | grep -c "$state$")
|
count=$(echo "$tmp" | grep -c "$state$")
|
||||||
echo "$state.value $count"
|
echo "$state.value $count"
|
||||||
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr -d '\n')
|
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr '\n' ' ')
|
||||||
if [ -n "$extinfo" ]; then
|
if [ -n "$extinfo" ]; then
|
||||||
echo "$state.extinfo" "$extinfo"
|
echo "$state.extinfo" "$extinfo"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue