fix(SC2162): add -r to read
This commit is contained in:
@@ -26,8 +26,12 @@ __contains_word() {
|
||||
|
||||
__get_machines() {
|
||||
local a b
|
||||
{ machinectl list-images --full --no-legend --no-pager 2>/dev/null; machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null; echo ".host"; } |
|
||||
{ while read a b; do echo " $a"; done; } |
|
||||
{
|
||||
machinectl list-images --full --no-legend --no-pager 2>/dev/null
|
||||
machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null
|
||||
echo ".host"
|
||||
} |
|
||||
{ while read -r a b; do echo " $a"; done; } |
|
||||
sort -u
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user