فهرست منبع

corrected gsquery bug

Daniel Gibbs 10 سال پیش
والد
کامیت
ebd35d2d89
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      lgsm/functions/command_monitor.sh
  2. 1 1
      lgsm/functions/install_gsquery.sh
  3. 1 1
      lgsm/functions/monitor_gsquery.sh

+ 1 - 1
lgsm/functions/command_monitor.sh

@@ -66,7 +66,7 @@ fn_monitor_tmux(){
 		local allowed_engines_array=( avalanche goldsource realvirtuality source spark unity3d unreal unreal2 )
 		for allowed_engine in "${allowed_engines_array[@]}"
 		do
-			if [ "${allowed_engine}" == "${function_selfname}" ]; then
+			if [ "${allowed_engine}" == "${engine}" ]; then
 				monitor_gsquery.sh
 			fi
 		done

+ 1 - 1
lgsm/functions/install_gsquery.sh

@@ -5,7 +5,7 @@
 lgsm_version="210516"
 
 fn_dlgsquery(){
-	cd "${rootdir}"
+	cd "${functionsdir}"
 	echo -e "downloading gsquery.py...\c"
 	wget -N /dev/null "https://gameservermanagers.com/dl/gsquery.py" 2>&1 | grep -F "HTTP" | grep -v "Moved Permanently" | cut -c45- | uniq
 	chmod +x gsquery.py

+ 1 - 1
lgsm/functions/monitor_gsquery.sh

@@ -9,7 +9,7 @@ lgsm_version="210516"
 
 local modulename="Monitor"
 
-# Forces legecy servers to use gsquery as vat gsquery is not present in legecy
+# Forces legecy servers to use gsquery
 if [ -z "${gsquery}" ]; then
 	gsquery="yes"
 fi