From ed4362cbf206f3b67370b364b1679c374d6db7d6 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Fri, 31 Mar 2023 18:00:16 +0200 Subject: [PATCH] fix(details): port printing ws fails silently --- lgsm/functions/info_messages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index f8e1038cb..5478987f1 100755 --- a/lgsm/functions/info_messages.sh +++ b/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 }