Browse Source

corrected NOT SET not displaying for server password

pull/514/head
Daniel Gibbs 10 years ago
parent
commit
cc91ee4f75
  1. 2
      functions/fn_details_config

2
functions/fn_details_config

@ -309,7 +309,7 @@ elif [ "${engine}" == "source" ] || [ "${engine}" == "goldsource" ]; then
# server password
if [ -f "${servercfgfullpath}" ]; then
serverpassword=$(grep "sv_password" "${servercfgfullpath}" | sed 's/sv_password//g' | sed 's/"//g')
serverpassword=$(grep "sv_password" "${servercfgfullpath}" | sed 's/sv_password //g' | sed 's/"//g')
if [ ! -n "${serverpassword}" ]; then
serverpassword="NOT SET"
fi

Loading…
Cancel
Save