Browse Source

fix(details): port output with whitespaces

pull/4160/head
Lucas Briese 3 years ago
parent
commit
a28c04236b
  1. 2
      lgsm/functions/info_messages.sh

2
lgsm/functions/info_messages.sh

@ -773,7 +773,7 @@ fn_port() {
portname="${1}"
porttype="${2}"
portprotocol="${3}"
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep ${portprotocol} | grep ${!porttype} | wc -l)"
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep "${portprotocol}" | grep -c "${!porttype}")"
fi
}

Loading…
Cancel
Save