mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
fix(SC2162): add -r to read
This commit is contained in:
@@ -29,7 +29,7 @@ __contains_word () {
|
||||
__get_machines() {
|
||||
local a b
|
||||
{ machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null; echo ".host"; } |
|
||||
{ while read a b; do echo " $a"; done; } |
|
||||
{ while read -r a b; do echo " $a"; done; } |
|
||||
sort -u
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user