diff --git a/audiogame-manager.sh b/audiogame-manager.sh index b8178da..88ad8c9 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -320,6 +320,7 @@ download() { for i in "${source[@]}" ; do local dest="${i##*/}" dest="${dest//%20/ }" + dest="${dest%\?*}" # Remove the destination file if it is empty. test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then @@ -1739,8 +1740,7 @@ case "${game}" in "Coin Collector") export WINEARCH=win64 export winVer="win7" - get_installer "coin collector.rar" "https://www.dropbox.com/s/v55q7t9n84otmcd/coin%20collector.rar?dl=1" - download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" + download "https://www.dropbox.com/s/v55q7t9n84otmcd/coin%20collector.rar?dl=1" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll" install_wine_bottle unrar x "$cache/coin collector.rar" -op"$WINEPREFIX/drive_c/Program Files" find "$WINEPREFIX/drive_c/Program Files/coin collector" -type f -name "nvdaControllerClient64.dll" -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;