From a66882fb433723beaf4c99cfb6e46272472dd5c3 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 11 Apr 2021 23:04:19 +0100 Subject: [PATCH] av ss bug --- lgsm/functions/info_messages.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 3145e3524..b657b13a8 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -667,8 +667,12 @@ fn_info_message_ports(){ echo -e "${startparameterslocation}" echo -e "" echo -e "${lightblue}Useful port diagnostic command:${default}" - executableshort="$(echo "${executable//.\/}" | cut -c -15)" - echo -e "ss -tuplwn | grep ${executableshort}" + if [ "${shortname}" == "av" ]; then + echo -e "ss -tuplwn | grep AvorionServer" + else + executableshort="$(echo "${executable//.\/}" | cut -c -15)" + echo -e "ss -tuplwn | grep ${executableshort}" + fi echo -e "" }