From 851bcd6d24fbeeb0bb304dc5e1da012820ec6486 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 13 Jun 2021 00:33:21 +0100 Subject: [PATCH] tower unite --- lgsm/functions/info_messages.sh | 9 +++------ lgsm/functions/info_parms.sh | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index f8ff4803e..1d3049594 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -1280,12 +1280,9 @@ fn_info_message_terraria(){ fn_info_message_towerunite(){ { fn_port "header" - echo -e "> Game\t${port}\ttcp" - # Don't do arithmetics if ever the port wasn't a numeric value - if [ "${port}" -eq "${port}" ]; then - echo -e "> Steam\t$((port+1))\tudp" - fi - echo -e "> Query\t${queryport}\tudp" + fn_port "Game" port udp + fn_port "Query" queryport udp + fn_port "Steam" steamport udp } | column -s $'\t' -t } diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index d0e69a04b..15929ef09 100755 --- a/lgsm/functions/info_parms.sh +++ b/lgsm/functions/info_parms.sh @@ -220,6 +220,7 @@ fn_info_parms_sof2(){ fn_info_parms_towerunite(){ port=${port:-"0"} + steamport=$((port+1)) queryport=${queryport:-"0"} }