From 7e6a220b6d65008fe5c3d21edabff34b53284d2d Mon Sep 17 00:00:00 2001 From: caem Date: Tue, 14 May 2024 23:29:00 +0200 Subject: [PATCH] Fix converting an existing collection --- flac2opus_collection.bash | 1 + 1 file changed, 1 insertion(+) 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))