mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Drop old prompt
This commit is contained in:
parent
dbabbfa833
commit
ba1d8e2d2e
1 changed files with 6 additions and 6 deletions
|
@ -39,11 +39,11 @@ move_files(){
|
||||||
rm -r "$staging_dir"/steamapps
|
rm -r "$staging_dir"/steamapps
|
||||||
}
|
}
|
||||||
auto_mod_download(){
|
auto_mod_download(){
|
||||||
while true; do
|
#while true; do
|
||||||
read -p 'Enter Steam username: ' steam_username
|
#read -p 'Enter Steam username: ' steam_username
|
||||||
[[ -z $steam_username ]] && { fail "Username can't be empty"; continue; }
|
#[[ -z $steam_username ]] && { fail "Username can't be empty"; continue; }
|
||||||
[[ -n $steam_username ]] && break
|
#[[ -n $steam_username ]] && break
|
||||||
done
|
#done
|
||||||
if [[ -d "$staging_dir/steamapps" ]]; then
|
if [[ -d "$staging_dir/steamapps" ]]; then
|
||||||
log "Sanitizing $staging_dir"
|
log "Sanitizing $staging_dir"
|
||||||
if [[ $dist == "steamos" ]]; then
|
if [[ $dist == "steamos" ]]; then
|
||||||
|
@ -66,7 +66,7 @@ auto_mod_download(){
|
||||||
bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit"
|
bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit"
|
||||||
else
|
else
|
||||||
#sudo -iu $steamcmd_user bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" $steamcmd_user
|
#sudo -iu $steamcmd_user bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" $steamcmd_user
|
||||||
info "In order to cache your credentials, provide your Steam username and password to the steamcmd prompt in the format <login> <pass>, 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."
|
log "In order to cache your credentials, provide your Steam username and password to the steamcmd prompt in the format <login> <pass>, 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"
|
||||||
rc=$?
|
rc=$?
|
||||||
[[ $rc -eq 0 ]] && sudo -iu $steamcmd_user bash -c "$steamcmd_path +runscript /tmp/run_scmd.txt"
|
[[ $rc -eq 0 ]] && sudo -iu $steamcmd_user bash -c "$steamcmd_path +runscript /tmp/run_scmd.txt"
|
||||||
|
|
Loading…
Reference in a new issue