get_steam function potentially ready.
This commit is contained in:
parent
166ad6469a
commit
aedc053e5b
@ -416,7 +416,7 @@ get_installer() {
|
||||
}
|
||||
|
||||
get_steam() {
|
||||
# Arguments: $1 name of item for download, $2 url for game
|
||||
# Arguments: $1 id of item for download, $2 url for game
|
||||
trap "exit 0" SIGINT
|
||||
# Check for steamcmd
|
||||
if ! command -v steamcmd &> /dev/null ; then
|
||||
@ -440,11 +440,6 @@ get_steam() {
|
||||
steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "$HOME/.local/wine/$bottle/drive_c/Program Files/" +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; }
|
||||
# If the file is still not available abort.
|
||||
if [[ ! -f "${cache}/$1" ]]; then
|
||||
echo "couldn't find $1. Please download the file and try again."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
help() {
|
||||
|
Loading…
Reference in New Issue
Block a user