diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 57926ad..3660702 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -204,6 +204,16 @@ download() { echo "Could not download \"$i\"..." exit 1 fi + case "${dest##*.}" in + "zip") + if [[ "$(file -b --mime-type "${cache}/${dest}")" != "application/zip" ]]; then + rm -fv "${cache}/${dest}" + dialog --backtitle "Linux Game Manager" \ + --infobox "Error downloading \"${dest}\". Installation cannot continue." -1 -1 --stdout + alert + fi + ;; + esac done }