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:
Lars Kruse 2020-02-07 14:34:38 +01:00
parent 02b2eb861e
commit b1230609dc

View file

@ -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"