mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00: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:
committed by
Zbigniew Jędrzejewski-Szmek
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
|
||||
|
||||
Reference in New Issue
Block a user