Răsfoiți Sursa

added missing quotes

Daniel Gibbs 11 ani în urmă
părinte
comite
0b30a37c3c
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      functions/fn_details_config

+ 3 - 3
functions/fn_details_config

@@ -529,7 +529,7 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 
 
 	# server name
 	# server name
 	if [ -f "${servercfgfullpath}" ]; then
 	if [ -f "${servercfgfullpath}" ]; then
-		servername=$(grep "ServerName=" ${servercfgfullpath}|sed 's/ServerName=//g')
+		servername=$(grep "ServerName=" "${servercfgfullpath}"|sed 's/ServerName=//g')
 		if [ ! -n "${servername}" ]; then
 		if [ ! -n "${servername}" ]; then
 			servername="NOT SET"
 			servername="NOT SET"
 		fi
 		fi
@@ -539,7 +539,7 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 
 
 	# server password
 	# server password
 	if [ -f "${servercfgfullpath}" ]; then
 	if [ -f "${servercfgfullpath}" ]; then
-		serverpassword=$(grep "GamePassword=" ${servercfgfullpath}|sed 's/GamePassword=//g')
+		serverpassword=$(grep "GamePassword=" "${servercfgfullpath}"|sed 's/GamePassword=//g')
 		if [ ! -n "${serverpassword}" ]; then
 		if [ ! -n "${serverpassword}" ]; then
 			serverpassword="NOT SET"
 			serverpassword="NOT SET"
 		fi
 		fi
@@ -549,7 +549,7 @@ elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
 
 
 	# admin password
 	# admin password
 	if [ -f "${servercfgfullpath}" ]; then
 	if [ -f "${servercfgfullpath}" ]; then
-		adminpassword=$(grep "AdminPassword=" ${servercfgfullpath}|sed 's/AdminPassword=//g')
+		adminpassword=$(grep "AdminPassword=" "${servercfgfullpath}"|sed 's/AdminPassword=//g')
 		if [ ! -n "${adminpassword}" ]; then
 		if [ ! -n "${adminpassword}" ]; then
 			adminpassword="NOT SET"
 			adminpassword="NOT SET"
 		fi
 		fi