From b0e4dac10a31784f1da7f6969f88c6c22aee4c11 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 14 Sep 2016 22:07:23 +0100 Subject: [PATCH] removed some test code --- lgsm/functions/info_config.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index b44552a5f..8e339ffde 100644 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -5,7 +5,7 @@ # Website: https://gameservermanagers.com # Description: Gets specific details from config files. -function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" +local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" ## Examples of filtering to get info from config files # sed 's/foo//g' - remove foo @@ -14,18 +14,6 @@ function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" # grep -v "foo" filter out lines that contain foo # cut -f1 -d "/" remove everything after / -gamename=$1 -engine=$2 -servercfgfullpath=$3 - -echo "Game Name: ${gamename}" -echo "Engine: ${engine}" -echo "servercfgfullpath: ${servercfgfullpath}" -echo "#####################" - -unavailable="${red}UNAVAILABLE${default}" -zero="${red}0${default}" - fn_info_config_avalanche(){ if [ ! -f "${servercfgfullpath}" ]; then servername="${unavailable}"