fix(SC2162): add -r to read

This commit is contained in:
Eisuke Kawashima
2025-07-14 20:24:26 +09:00
parent cb2e0dc4f5
commit 01e769bc2e
20 changed files with 36 additions and 32 deletions
+6 -2
View File
@@ -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
}