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. 32
      functions/fn_check_steamuser

32
functions/fn_check_steamuser

@ -2,20 +2,22 @@
# 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 if [ "${steamuser}" == "username" ]; then
fn_printwarnnl "Steam login not set. Using anonymous login." fn_printfailnl "Steam login not set. Update steamuser."
if [ -d "${scriptlogdir}" ]; then echo " * Change steamuser=\"username\" to a valid steam login."
fn_scriptlog "Steam login not set. Using anonymous login." if [ -d ${scriptlogdir} ]; then
fi fn_scriptlog "edit ${selfname}. change steamuser=\"username\" to a valid steam login."
if [ "${steamuser}" == "username" ]; then exit 1
echo " * Change steamuser=\"username\" to a valid steam login." fi
if [ -d "${scriptlogdir}" ]; then fi
fn_scriptlog "Change steamuser=\"username\" to a valid steam login." if [ -z "${steamuser}" ]; then
fi fn_printwarnnl "Steam login not set. Using anonymous login."
fi if [ -d ${scriptlogdir} ]; then
steamuser="anonymous" fn_scriptlog "Steam login not set. Using anonymous login."
steampass="" fi
sleep 2 steamuser="anonymous"
steampass=""
sleep 2
fi fi

Loading…
Cancel
Save