mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Testing scmd
This commit is contained in:
parent
69a9a9c40d
commit
ae78ea7e4c
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ move_files(){
|
||||||
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\n"; 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
|
||||||
|
@ -58,7 +58,7 @@ auto_mod_download(){
|
||||||
if [[ $dist == "steamos" ]]; then
|
if [[ $dist == "steamos" ]]; then
|
||||||
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"
|
sudo -iu $steamcmd_user bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" $steamcmd_user
|
||||||
fi
|
fi
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc -eq 0 ]]; then
|
if [[ $rc -eq 0 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue