From 58ee24085e0e330644eb54ce0c36c6060b368026 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 9 Dec 2014 23:45:07 +0000 Subject: [PATCH] minor code tidy --- functions/fn_details | 8 ++++---- functions/fn_serverquery | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/fn_details b/functions/fn_details index 888133c9d..8efb1cfa3 100644 --- a/functions/fn_details +++ b/functions/fn_details @@ -173,10 +173,10 @@ echo "" fn_arma3details(){ fn_autoip -servername=$(grep -s hostname "${servercfgfullpath}"| grep -v //|sed -e 's/\//g'| tr -d '=\"; ') -serverport=$(grep -s serverport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:]) -queryport=$(grep -s steamqueryport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:]) -masterport=$(grep -s steamport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:]) +servername=$(grep -s hostname "${servercfgfullpath}"|grep -v //|sed -e 's/\//g'|tr -d '=\"; ') +serverport=$(grep -s serverport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:]) +queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:]) +masterport=$(grep -s steamport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:]) pid=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) echo "" echo "${gamename} Server Details" diff --git a/functions/fn_serverquery b/functions/fn_serverquery index 3bc8b1523..1e780f3da 100644 --- a/functions/fn_serverquery +++ b/functions/fn_serverquery @@ -13,7 +13,7 @@ if [ -f gsquery.py ]; then elif [ "${engine}" == "spark" ]; then port=$((${port} + 1)) elif [ "${engine}" == "realvirtuality" ]; then - queryport=$(grep -s steamqueryport= "${servercfgfullpath}"| grep -v //|tr -cd [:digit:]) + queryport=$(grep -s steamqueryport= "${servercfgfullpath}"|grep -v //|tr -cd [:digit:]) port=${queryport} fi fn_printinfo "Monitoring ${servicename}: Detected gsquery.py"