From 67f31d98130bdc174c5a665f3ecfca8ab142a88c Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 3 Dec 2014 23:44:12 +0000 Subject: [PATCH] fixed minor bug in fn_unrealdetails --- functions/fn_details | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/fn_details b/functions/fn_details index c3cc8d6b5..20d3d3fa3 100644 --- a/functions/fn_details +++ b/functions/fn_details @@ -2,7 +2,7 @@ # LGSM fn_details function # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk -# Version: 131114 +# Version: 011214 fn_sourcedetails(){ fn_autoip @@ -47,7 +47,7 @@ echo "" fn_unrealdetails(){ fn_autoip pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) -gameport=$(grep Port= "${systemdir}/${ini}"|grep -v Master|grep -v LAN|grep -v Proxy|grep -v Listen|sed 's/\Port=//g'||tr -d '\r') +gameport=$(grep Port= "${systemdir}/${ini}"|grep -v Master|grep -v LAN|grep -v Proxy|grep -v Listen|sed 's/\Port=//g'|tr -d '\r') queryport=$((${gameport} + 1)) gsqueryport=$(grep OldQueryPortNumber= "${systemdir}/${ini}"|sed 's/\OldQueryPortNumber=//g') udplinkport=$((${gameport} + 2))