#!/bin/bash
if [ `file --mime-type "$@"[1] |grep "$2[A-Za-z0-9_-]*/\?[A-Za-z0-9_-]*$"|wc -l` = 1 ];
	then
		exit 0;
	else
		exit 1;
fi
