فهرست منبع

removed some test code

Daniel Gibbs 9 سال پیش
والد
کامیت
b0e4dac10a
1فایلهای تغییر یافته به همراه1 افزوده شده و 13 حذف شده
  1. 1 13
      lgsm/functions/info_config.sh

+ 1 - 13
lgsm/functions/info_config.sh

@@ -5,7 +5,7 @@
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
 # Description: Gets specific details from config files.
 # 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
 ## Examples of filtering to get info from config files
 # sed 's/foo//g' - remove foo
 # 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
 # grep -v "foo" filter out lines that contain foo
 # cut -f1 -d "/" remove everything after /
 # 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(){
 fn_info_config_avalanche(){
 	if [ ! -f "${servercfgfullpath}" ]; then
 	if [ ! -f "${servercfgfullpath}" ]; then
 		servername="${unavailable}"
 		servername="${unavailable}"