Révision 38835f7a
systemd_units: add doublequote around $extinfo
| plugins/system/systemd_units | ||
|---|---|---|
| 64 | 64 |
for state in $states ; do |
| 65 | 65 |
count=$(echo "$tmp" | grep -c "$state$") |
| 66 | 66 |
echo "$state.value $count" |
| 67 |
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1) |
|
| 67 |
extinfo=$(echo "$tmp" | grep "$state$" | cut -d " " -f 1 | tr -d '\n')
|
|
| 68 | 68 |
if [ -n "$extinfo" ]; then |
| 69 |
echo "$state.extinfo" $extinfo
|
|
| 69 |
echo "$state.extinfo" "$extinfo"
|
|
| 70 | 70 |
fi |
| 71 | 71 |
done |
| 72 | 72 |
} |
Formats disponibles : Unified diff