1
0
Fork 0
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:
Tomaz Solc 2016-10-27 18:19:16 +02:00
parent 38835f7a62
commit d888c31d1d

View file

@ -64,7 +64,7 @@ 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 | tr -d '\n')
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr '\n' ' ')
if [ -n "$extinfo" ]; then
echo "$state.extinfo" "$extinfo"
fi