Browse Source

Fixed teeworlds server password

Daniel Gibbs 10 năm trước cách đây
mục cha
commit
e8736fcb39
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functions/fn_details_config

+ 1 - 1
functions/fn_details_config

@@ -402,7 +402,7 @@ elif [ "${engine}" == "teeworlds" ]; then
 
 	# server password
 	if [ -f "${servercfgfullpath}" ]; then
-		serverpassword=$(grep "password " "${servercfgfullpath}" | sed 's/password //g' | tr -d '=\"; ')
+		serverpassword=$(grep "password " "${servercfgfullpath}" | awk '!/sv_rcon_password/'| sed 's/password //g' | tr -d '=\"; ')
 		if [ ! -n "${rconpassword}" ]; then
 			serverpassword="NOT SET"
 		fi