Remove spurious line continuation; add quotes.

Pipelines can extend over multiple lines without needing line
continuation.
This commit is contained in:
Demi Marie Obenour 2020-12-07 14:11:12 -05:00
parent 9840953f5f
commit 70253edeab
No known key found for this signature in database
GPG Key ID: 28A45C93B0B5B6E0

View File

@ -153,8 +153,8 @@ if [ "${ip}" ]; then
printf '%s\n' "*raw" \ printf '%s\n' "*raw" \
"$iptables_cmd -i ${vif} ! -s ${addr} -j DROP" \ "$iptables_cmd -i ${vif} ! -s ${addr} -j DROP" \
"$iptables_cmd ! -i vif+ -s ${addr} -j DROP" \ "$iptables_cmd ! -i vif+ -s ${addr} -j DROP" \
"COMMIT" | \ "COMMIT" |
${cmdprefix} $ipt --noflush $ipt_arg ${cmdprefix} "$ipt" --noflush $ipt_arg
if [[ "$command" = 'online' ]]; then if [[ "$command" = 'online' ]]; then
ip -- neighbour "${ipcmd}" to "${addr}" \ ip -- neighbour "${ipcmd}" to "${addr}" \
dev "${vif}" lladdr "$mac" nud permanent dev "${vif}" lladdr "$mac" nud permanent
@ -166,7 +166,7 @@ if [ "${ip}" ]; then
done done
# if no IPv6 is assigned, block all IPv6 traffic on that interface # if no IPv6 is assigned, block all IPv6 traffic on that interface
if ! [[ "$ip" = *:* ]]; then if ! [[ "$ip" = *:* ]]; then
echo -e "*raw\\n$iptables_cmd -i ${vif} -j DROP\\nCOMMIT" | \ echo -e "*raw\\n$iptables_cmd -i ${vif} -j DROP\\nCOMMIT" |
${cmdprefix} ip6tables-restore --noflush $ipt_arg ${cmdprefix} ip6tables-restore --noflush $ipt_arg
fi fi
fi fi