diff --git a/linux-game-manager.sh b/linux-game-manager.sh index dd10327..76a210b 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -233,15 +233,14 @@ download() { fi ;; "wad") - if [[ "$(file -b --mime-type "${cache}/${dest}")" != "application/octet-stream" ]]; then + if [[ "$(file -b --mime-type "${cache}/${dest}")" == "application/octet-stream" ]]; then downloadError=0 fi ;; *) # Add HTML check for other file types if file -b "${cache}/${dest}" | grep -q "HTML document" ; then - echo "File not found: \"$i\" (HTML document probably 404)" - downloadError=0 + downloadError=1 fi ;; esac