From ca2599640b975ca2a1a8591c2960663bdcccc7e5 Mon Sep 17 00:00:00 2001 From: Meutel Date: Sat, 2 Jul 2016 11:07:14 +0200 Subject: [PATCH] FreeBSD compat --- flac2mp3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flac2mp3.sh b/flac2mp3.sh index 49e6c1c..08807ab 100755 --- a/flac2mp3.sh +++ b/flac2mp3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # from http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3 OUT_DIR=${OUT_DIR:="$HOME/tmp/mp3"} @@ -47,7 +47,7 @@ do OUTFILE="${OUT_DIR}/$ARTIST/${DATE}_$ALBUM/$MP3" mkdir -p "${OUT_DIR}/$ARTIST/${DATE}_$ALBUM" - flac -c -d "$FLAC" | lame ${lame_opts} - "$OUTFILE" + flac -c -d "$FLAC" | twolame ${lame_opts} - "$OUTFILE" id3v2 \ -a "$ARTIST" \