Explorar el Código

Fixed teeworlds server password

Daniel Gibbs hace 10 años
padre
commit
e8736fcb39
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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