More improvements to progress bars. Hopefully fixed a bug that was causing games to install twice.
This commit is contained in:
@@ -526,6 +526,7 @@ while getopts "${args}" i ; do
|
||||
i) game_installer;;
|
||||
I)
|
||||
export game="${OPTARG}"
|
||||
export noninteractiveInstall="true"
|
||||
break;;
|
||||
k) kill_game;;
|
||||
L) license;;
|
||||
@@ -552,16 +553,19 @@ done
|
||||
# If agmNoLaunch is set, exit (script is being sourced)
|
||||
[[ "$agmNoLaunch" == "true" ]] && exit 0
|
||||
|
||||
# If no game specified, exit
|
||||
[[ ${#game} -lt 1 ]] && exit 0
|
||||
# Only proceed with noninteractive installation if explicitly requested
|
||||
if [[ "$noninteractiveInstall" == "true" ]]; then
|
||||
# If no game specified for noninteractive install, exit
|
||||
[[ ${#game} -lt 1 ]] && exit 0
|
||||
|
||||
# Install the specified game noninteractively
|
||||
if [[ -f ".install/${game}.sh" ]]; then
|
||||
export LANG="en_US.UTF-8"
|
||||
. ".install/${game}.sh"
|
||||
# Show success message
|
||||
agm_msgbox "Installation Complete" "Audio Game Installer" "Game \"${game}\" has been successfully installed."
|
||||
else
|
||||
agm_msgbox "Audio Game Installer" "" "Error: Game '${game}' not found in .install directory"
|
||||
exit 1
|
||||
# Install the specified game noninteractively
|
||||
if [[ -f ".install/${game}.sh" ]]; then
|
||||
export LANG="en_US.UTF-8"
|
||||
. ".install/${game}.sh"
|
||||
# Show success message
|
||||
agm_msgbox "Installation Complete" "Audio Game Installer" "Game \"${game}\" has been successfully installed."
|
||||
else
|
||||
agm_msgbox "Audio Game Installer" "" "Error: Game '${game}' not found in .install directory"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user