Fixed another problem with validation. I did all these backwards apparently. lol

This commit is contained in:
Storm Dragon 2024-12-26 11:46:31 -05:00
parent da13890112
commit 22b97be40a

View File

@ -233,15 +233,14 @@ download() {
fi fi
;; ;;
"wad") "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 downloadError=0
fi fi
;; ;;
*) *)
# Add HTML check for other file types # Add HTML check for other file types
if file -b "${cache}/${dest}" | grep -q "HTML document" ; then if file -b "${cache}/${dest}" | grep -q "HTML document" ; then
echo "File not found: \"$i\" (HTML document probably 404)" downloadError=1
downloadError=0
fi fi
;; ;;
esac esac