From 479a5651b63e826a4d0f728e4c7305d948a7e507 Mon Sep 17 00:00:00 2001 From: Michael Taboada Date: Sat, 2 Dec 2023 14:53:26 -0800 Subject: [PATCH] Slight bug fix to get_steam --- audiogame-manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 1e04b09..9aaaa89 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -440,7 +440,7 @@ get_steam() { --inputbox "Please enter your Steam user name:" -1 -1 --stdout)" # Download the game mkdir -p "${WINEPREFIX}/drive_c/Program Files/${game}" - steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "${WINEPREFIX}/drive_c/Program Files/" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \ + steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "${WINEPREFIX}/drive_c/Program Files/$game" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \ --infobox "Something went wrong. Please make sure you have a stable internet connection, and if the problem persists, contact audiogame-manager's developers." -1 -1 exit 1; } }