mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
Testing scmd
This commit is contained in:
1 parent
69a9a9c40d
commit
ae78ea7e4c
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user