Browse Source

Updated fn_check_steamuser to exit if user not set

Instead of continuing with an install or update that will fail script
will now exir
pull/548/head
Daniel Gibbs 10 years ago
parent
commit
01be80d4b3
  1. 18
      functions/fn_check_steamuser

18
functions/fn_check_steamuser

@ -2,19 +2,21 @@
# LGSM fn_check_steamuser function # LGSM fn_check_steamuser function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 011115 # Version: 040715
if [ -z "${steamuser}" ]||[ "${steamuser}" == "username" ]; then
fn_printwarnnl "Steam login not set. Using anonymous login."
if [ -d "${scriptlogdir}" ]; then
fn_scriptlog "Steam login not set. Using anonymous login."
fi
if [ "${steamuser}" == "username" ]; then if [ "${steamuser}" == "username" ]; then
fn_printfailnl "Steam login not set. Update steamuser."
echo " * Change steamuser=\"username\" to a valid steam login." echo " * Change steamuser=\"username\" to a valid steam login."
if [ -d "${scriptlogdir}" ]; then if [ -d ${scriptlogdir} ]; then
fn_scriptlog "Change steamuser=\"username\" to a valid steam login." fn_scriptlog "edit ${selfname}. change steamuser=\"username\" to a valid steam login."
exit 1
fi fi
fi fi
if [ -z "${steamuser}" ]; then
fn_printwarnnl "Steam login not set. Using anonymous login."
if [ -d ${scriptlogdir} ]; then
fn_scriptlog "Steam login not set. Using anonymous login."
fi
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""
sleep 2 sleep 2

Loading…
Cancel
Save