From 70253edeab13f42d36e36e3b1fef637e32d5efab Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Mon, 7 Dec 2020 14:11:12 -0500 Subject: [PATCH] Remove spurious line continuation; add quotes. Pipelines can extend over multiple lines without needing line continuation. --- network/vif-route-qubes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/vif-route-qubes b/network/vif-route-qubes index 055fac0..91404c9 100755 --- a/network/vif-route-qubes +++ b/network/vif-route-qubes @@ -153,8 +153,8 @@ if [ "${ip}" ]; then printf '%s\n' "*raw" \ "$iptables_cmd -i ${vif} ! -s ${addr} -j DROP" \ "$iptables_cmd ! -i vif+ -s ${addr} -j DROP" \ - "COMMIT" | \ - ${cmdprefix} $ipt --noflush $ipt_arg + "COMMIT" | + ${cmdprefix} "$ipt" --noflush $ipt_arg if [[ "$command" = 'online' ]]; then ip -- neighbour "${ipcmd}" to "${addr}" \ dev "${vif}" lladdr "$mac" nud permanent @@ -166,7 +166,7 @@ if [ "${ip}" ]; then done # if no IPv6 is assigned, block all IPv6 traffic on that interface 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 fi fi