From anonymous, 2 Weeks ago, written in Bash.
Embed
  1. #!/bin/bash
  2. git clean -dxf
  3. ./configure || exit 125
  4. make -j2 || exit 125
  5. output=$(./python -c "import mimetypes; mt = mimetypes.MimeTypes(); print(mt.guess_type('E01.mkv')[0])")
  6. echo "$output"
  7. [[ $output == None ]] && exit 1 || exit 0