diff --git a/flac2opus_collection.bash b/flac2opus_collection.bash index 1fec1aa..5ed9f0e 100755 --- a/flac2opus_collection.bash +++ b/flac2opus_collection.bash @@ -156,6 +156,7 @@ iterate_dirs() { local item="$(echo "$item" | sed "s/'/'\\\\'/g")" if [ -f "$item" ]; then new_file="${item/"$INPUT_DIR"/"$OUTPUT_DIR"}" + new_file="${new_file/.flac/.oga}" if [ ! -f "$new_file" ]; then if [[ "$item" == *".flac" ]]; then ((count+=1))