Procházet zdrojové kódy

fix(details): port output with whitespaces (#4160)

jusito před 3 roky
rodič
revize
4c717c5b94
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lgsm/functions/info_messages.sh

+ 1 - 1
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
 }