From f182b967a4b238d360a15b2db95e4bafe0ce2b4f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 11 Apr 2021 14:09:13 +0100 Subject: [PATCH] shorten executable --- lgsm/functions/info_messages.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 83b02eebb..364f7855f 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -667,7 +667,8 @@ fn_info_message_ports(){ echo -e "${startparameterslocation}" echo -e "" echo -e "${lightblue}Useful port diagnostic command:${default}" - echo -e "ss -tupl | grep ${executable//.\/}" + executableshort="$(echo "${executable//.\/}" | cut -c -15)" + echo -e "ss -tupl | grep ${executableshort}" echo -e "" }