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:
parent
d895500c47
commit
3a450ec5c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user