From ae78ea7e4ca0875278ebec184d676a3ad061528b Mon Sep 17 00:00:00 2001 From: aclist Date: Fri, 7 Oct 2022 18:26:59 +0900 Subject: [PATCH] Testing scmd --- helpers/scmd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/scmd.sh b/helpers/scmd.sh index a052d80..a3db212 100644 --- a/helpers/scmd.sh +++ b/helpers/scmd.sh @@ -35,7 +35,7 @@ move_files(){ auto_mod_download(){ while true; do 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 done if [[ -d "$staging_dir/steamapps" ]]; then @@ -58,7 +58,7 @@ auto_mod_download(){ if [[ $dist == "steamos" ]]; then bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" 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 rc=$? if [[ $rc -eq 0 ]]; then