FreeBSD compat

This commit is contained in:
Meutel 2016-07-02 11:07:14 +02:00
parent 0ab2c69d62
commit ca2599640b

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# from http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3 # from http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3
OUT_DIR=${OUT_DIR:="$HOME/tmp/mp3"} OUT_DIR=${OUT_DIR:="$HOME/tmp/mp3"}
@ -47,7 +47,7 @@ do
OUTFILE="${OUT_DIR}/$ARTIST/${DATE}_$ALBUM/$MP3" OUTFILE="${OUT_DIR}/$ARTIST/${DATE}_$ALBUM/$MP3"
mkdir -p "${OUT_DIR}/$ARTIST/${DATE}_$ALBUM" mkdir -p "${OUT_DIR}/$ARTIST/${DATE}_$ALBUM"
flac -c -d "$FLAC" | lame ${lame_opts} - "$OUTFILE" flac -c -d "$FLAC" | twolame ${lame_opts} - "$OUTFILE"
id3v2 \ id3v2 \
-a "$ARTIST" \ -a "$ARTIST" \