Browse Source

added cut -f1 -d "/" to source servers

pull/1038/head
Daniel Gibbs 9 years ago
parent
commit
520615ddbb
  1. 6
      lgsm/functions/info_config.sh
  2. BIN
      lgsm/lib/ubuntu12.04/i386/libstdc++.so.6.0.16

6
lgsm/functions/info_config.sh

@ -194,9 +194,9 @@ fn_info_config_source(){
serverpassword="${unavailable}"
rconpassword="${unavailable}"
else
servername=$(grep "hostname" "${servercfgfullpath}" | sed 's/hostname //g' | sed 's/"//g')
serverpassword=$(grep "sv_password" "${servercfgfullpath}" | sed 's/sv_password //g' | sed 's/"//g')
rconpassword=$(grep "rcon_password" "${servercfgfullpath}" | sed 's/rcon_password //g' | sed 's/"//g')
servername=$(grep "hostname" "${servercfgfullpath}" | sed 's/hostname //g' | sed 's/"//g'| cut -f1 -d "/")
serverpassword=$(grep "sv_password" "${servercfgfullpath}" | sed 's/sv_password //g' | sed 's/"//g'| cut -f1 -d "/")
rconpassword=$(grep "rcon_password" "${servercfgfullpath}" | sed 's/rcon_password //g' | sed 's/"//g'| cut -f1 -d "/")
# Not Set
servername=${servername:-"NOT SET"}

BIN
lgsm/lib/ubuntu12.04/i386/libstdc++.so.6.0.16

Binary file not shown.
Loading…
Cancel
Save