mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
systemd_units: avoid use of echo -n flag
This commit is contained in:
parent
a9476f50fd
commit
adc0072286
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ EOF
|
||||||
fetch () {
|
fetch () {
|
||||||
tmp=$(systemctl --no-pager --no-legend --all | awk '{print $1, $3}')
|
tmp=$(systemctl --no-pager --no-legend --all | awk '{print $1, $3}')
|
||||||
for state in $states ; do
|
for state in $states ; do
|
||||||
echo -n "$state.value "
|
count=$(echo "$tmp" | grep -c "$state$")
|
||||||
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)
|
||||||
if [ -n "$extinfo" ]; then
|
if [ -n "$extinfo" ]; then
|
||||||
echo "$state.extinfo" $extinfo
|
echo "$state.extinfo" $extinfo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue