Skip to content

Commit 4c717c5

Browse files
authored
fix(details): port output with whitespaces (#4160)
1 parent 52ed09c commit 4c717c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/functions/info_messages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ fn_port() {
773773
portname="${1}"
774774
porttype="${2}"
775775
portprotocol="${3}"
776-
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep ${portprotocol} | grep ${!porttype} | wc -l)"
776+
echo -e "${portname}\t${!porttype}\t${portprotocol}\t$(echo "${ssinfo}" | grep "${portprotocol}" | grep -c "${!porttype}")"
777777
fi
778778
}
779779

0 commit comments

Comments
 (0)