Browse Source

Made server_port grep more unique

master_server_port was also grep'd before
pull/1200/head
Marvin Lehmann 8 years ago
parent
commit
6c43ad882f
  1. 2
      lgsm/functions/info_config.sh

2
lgsm/functions/info_config.sh

@ -114,7 +114,7 @@ fn_info_config_dontstarve(){
steamauthenticationport="${zero}"
steammasterserverport="${zero}"
else
port=$(grep "server_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
port=$(grep "server_port" "${servercfgfullpath}" | grep "^server_port" | grep -v "#" | tr -cd '[:digit:]')
steamauthenticationport=$(grep "authentication_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
steammasterserverport=$(grep "master_server_port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')

Loading…
Cancel
Save