1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix carrier return on FW types concatenation

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-06-20 20:25:37 +02:00
parent 6b294cc9df
commit 90408a197a

View file

@ -1161,7 +1161,7 @@ _set_vps_firewall() {
fw_list=$(_set_json "shorewalllist" "$settings")
[ -z "$fw_list" ] && return
if [ -n "$vpsfwlist" ]; then
vpsfwlist="$vpsfwlist\n$(echo $fw_list | jsonfilter -q -e '@.list[*]' | sed '/^[[:space:]]*$/d')"
vpsfwlist="${vpsfwlist}"$'\n'"$(echo $fw_list | jsonfilter -q -e '@.list[*]' | sed '/^[[:space:]]*$/d')"
else
vpsfwlist="$(echo $fw_list | jsonfilter -q -e '@.list[*]' | sed '/^[[:space:]]*$/d')"
fi