From 22b97be40a41ad0ba6a328484dd67d01ec55107a Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 26 Dec 2024 11:46:31 -0500 Subject: [PATCH] Fixed another problem with validation. I did all these backwards apparently. lol --- linux-game-manager.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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