echo pipe

This commit is contained in:
Bob Mottram 2018-03-17 22:02:12 +00:00
parent 0c1e3938b0
commit ee1556bb9c
1 changed files with 2 additions and 2 deletions

View File

@ -1780,8 +1780,8 @@ function show_firewall {
echo $"Firewall Settings" echo $"Firewall Settings"
echo '' echo ''
while read -r line; do while read -r line; do
firewall_name=$(awk "$line" -F '=' '{print $1}') firewall_name=$(echo "$line" | awk -F '=' '{print $1}')
firewall_port=$(awk "$line" -F '=' '{print $2}') firewall_port=$(echo "$line" | awk -F '=' '{print $2}')
echo -n -e "$(pad_string "${firewall_name}")" echo -n -e "$(pad_string "${firewall_name}")"
echo "${firewall_port}" echo "${firewall_port}"
done < "$FIREWALL_CONFIG" done < "$FIREWALL_CONFIG"