Fix bootstrap IDE type check to allow for gzip

This commit is contained in:
Alissa Huskey 2019-11-13 01:10:04 -07:00
parent 805ac2d207
commit 6261f9d8ea

View file

@ -30,7 +30,7 @@ if [ -z "$ARDUINO_DIR" ] || ! test -e $ARDUINO_DIR || [ $OS == "cygwin" ]; then
download $ARDUINO_URL $ARDUINO_FILE
download_type="$(file --mime-type $DEPENDENCIES_FOLDER/$ARDUINO_FILE)"
if [[ ! "$download_type" =~ application\/zip ]]; then
if [[ ! "$download_type" =~ zip ]]; then
mv $ARDUINO_FILE "bad-$ARDUINO_FILE"
echo