diff --git a/helpers/scmd.sh b/helpers/scmd.sh index c8d5570..9523240 100644 --- a/helpers/scmd.sh +++ b/helpers/scmd.sh @@ -67,7 +67,7 @@ auto_mod_download(){ else #sudo -iu $steamcmd_user bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" $steamcmd_user log "In order to cache your credentials, provide your Steam username and password to the steamcmd prompt in the format , then type quit after successful login. Auto-mod installation will then headlessly invoke steamcmd and download the mods. Valve generates a long-lived token that should persist multiple logins, but you may be asked to periodically log in again if several days pass." - sudo -iu $steamcmd_user bash -c "$steamcmd_path" + sudo -iu $steamcmd_user bash -c "$steamcmd_path" 2>/dev/null rc=$? [[ $rc -eq 0 ]] && sudo -iu $steamcmd_user bash -c "$steamcmd_path +runscript /tmp/run_scmd.txt" fi