#!/bin/bash # Check if the argument is provided if [ -z "$1" ]; then echo "Usage: $0 " exit 1 fi # Assign the MKV filename to a variable MKV_FILE="$1" # Run the mkvpropedit commands mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-otf" --update-attachment "mime-type:application/vnd.ms-opentype" if [ $? -gt 1 ]; then echo "Error processing mime-type: application/vnd.ms-opentype for $MKV_FILE" fi mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-otf" --update-attachment "mime-type:font/otf" if [ $? -gt 1 ]; then echo "Error processing mime-type: font/otf for $MKV_FILE" fi mkvpropedit "$MKV_FILE" --attachment-mime-type "application/x-font-ttf" --update-attachment "mime-type:font/ttf" if [ $? -gt 1 ]; then echo "Error processing mime-type: font/ttf for $MKV_FILE" fi echo "Finished processing $MKV_FILE"