1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

_sd_machines: Use machinectl --no-legend

Otherwise bogus entries from the header and footer would show up in the
completion list.
This commit is contained in:
Wieland Hoffmann 2014-03-10 15:17:32 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent d895500c47
commit 3a450ec5c6

View File

@ -1,6 +1,6 @@
#autoload
__get_machines () {
machinectl --full --no-pager list | {while read -r a b; do echo $a; done;};
machinectl --full --no-legend --no-pager list | {while read -r a b; do echo $a; done;};
}
local -a _machines