mirror of
https://github.com/munin-monitoring/muninlite.git
synced 2024-12-22 13:52:13 +01:00
Command "list": sort plugins by name and remove surrounding whitespace
Previously the plugin names were not sorted and a leading space was emitted.
This commit is contained in:
parent
02b2eb861e
commit
b1230609dc
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ do
|
|||
RES="$RES $PLUG"
|
||||
fi
|
||||
done
|
||||
PLUGINS=$RES
|
||||
# sort plugin names and remove surrounding whitespace
|
||||
PLUGINS=$(echo "$RES" | xargs -r -n 1 echo | sort | xargs echo)
|
||||
|
||||
# ===== MAIN LOOP =====
|
||||
FUNCTIONS="list nodes config fetch version quit"
|
||||
|
|
Loading…
Reference in a new issue