confd: Fix shellcheck warnings in gen-interfaces

This commit is contained in:
Tobias Waldekranz
2023-11-23 12:18:28 +01:00
parent 7f049db21f
commit f258e030bd
+3 -3
View File
@@ -125,7 +125,7 @@ ifaces=""
for phy in $phys_ifaces; do
found=""
for port in $ports; do
if [ $port = $phy ]; then
if [ "$port" = "$phy" ]; then
found=true
break
fi
@@ -168,8 +168,8 @@ fi
cat <<EOF
}
$(for iface in $ifaces; do gen_interface $iface; done)
$(for iface in $ports; do gen_interface $iface $bridge; done)
$(for iface in $ifaces; do gen_interface "$iface"; done)
$(for iface in $ports; do gen_interface "$iface" "$bridge"; done)
]
EOF
if [ "$dhcp" = "true" ] && [ -n "$bridge" ]; then