diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 8dcb63e..74c1f36 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -501,18 +501,20 @@ winetricks() { echo "1" > "${XDG_CACHE_HOME:-$HOME/.cache}/winetricks/track_usage" fi # Download or update agm's copy of winetricks - if [[ ! -e "${cache}/winetricks" ]]; then + winetricksPath="${XDG_CONFIG_HOME:-$HOME/.config}/storm-games/audiogame-manager" + if [[ ! -e "${winetricksPath}/winetricks" ]]; then checkWinetricksUpdate="true" download "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks" - chmod 700 "${cache}/winetricks" + mv "${cache}/winetricks" "${winetricksPath}" + chmod 755 "${winetricksPath}/winetricks" else if [[ "$checkWinetricksUpdate" != "true" ]]; then checkWinetricksUpdate="true" - ${cache}/winetricks --self-update + ${winetricksPath}/winetricks --self-update fi fi # Run the requested winetricks parameters - ${cache}/winetricks "$@" + ${winetricksPath}/winetricks "$@" } install_rhvoice() {