string "vorbis" may not appear on line 1

This commit is contained in:
Vincent Riquer 2013-05-04 03:14:26 +02:00
parent 0d511b2674
commit 2b55e7ef66

View File

@ -19,7 +19,7 @@ getFiles() {
mimetype=$(file -b --mime-type "$sourcepath/$filename") mimetype=$(file -b --mime-type "$sourcepath/$filename")
if [[ $mimetype == application/ogg ]] if [[ $mimetype == application/ogg ]]
then then
case "$(head -n1 "$sourcepath/$filename")" in case "$(head -n5 "$sourcepath/$filename")" in
*'vorbis'*) *'vorbis'*)
mimetype+=' vorbis' mimetype+=' vorbis'
;; ;;