Browse Source

vif-route-qubes: \n -> \\n

Make shellcheck happy.
Marek Marczykowski-Górecki 5 years ago
parent
commit
e3db225aab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      network/vif-route-qubes

+ 2 - 2
network/vif-route-qubes

@@ -105,12 +105,12 @@ if [ "${ip}" ] ; then
         else
             ipt=iptables-restore
         fi
-        echo -e "*raw\n$iptables_cmd -i ${vif} ! -s ${addr} -j DROP\nCOMMIT" | \
+        echo -e "*raw\\n$iptables_cmd -i ${vif} ! -s ${addr} -j DROP\\nCOMMIT" | \
             ${cmdprefix} $ipt --noflush $ipt_arg
 	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
     ${cmdprefix} ip addr "${ipcmd}" "${back_ip}/32" dev "${vif}"