Explorar o código

fixed mumble port using awk instead of sed

UltimateByte %!s(int64=9) %!d(string=hai) anos
pai
achega
c2bd0cffb5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lgsm/functions/info_config.sh

+ 1 - 1
lgsm/functions/info_config.sh

@@ -320,7 +320,7 @@ fn_info_config_mumble(){
 		queryport="${port}"
 		servername="Mumble"
 	else
-		port=$(grep "port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/port//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+		port=$(grep "port=" "${servercfgfullpath}" | awk -F "=" '{ print $2 }' )
 		queryport="${port}"
 
 		# Not Set