nixos-config/users/simon/files/scripts/mkvpropedit-add-fonts
Simon Bruder b0d6861825
Use shellcheck
This also adds set -e and friends where applicable.
2021-05-31 23:59:13 +02:00

8 lines
160 B
Bash
Executable file

#!/usr/bin/env bash
set -e
file="$1"
shift
for attachment in "$@"; do
mkvpropedit --attachment-mime-type font/sfnt --add-attachment "$attachment" "$file"
done