Fix converting an existing collection

This commit is contained in:
caem 2024-05-14 23:29:00 +02:00
parent a69ca3a87d
commit 7e6a220b6d
No known key found for this signature in database
GPG key ID: 3BCEDBB0C38805DA

View file

@ -156,6 +156,7 @@ iterate_dirs() {
local item="$(echo "$item" | sed "s/'/'\\\\'/g")" local item="$(echo "$item" | sed "s/'/'\\\\'/g")"
if [ -f "$item" ]; then if [ -f "$item" ]; then
new_file="${item/"$INPUT_DIR"/"$OUTPUT_DIR"}" new_file="${item/"$INPUT_DIR"/"$OUTPUT_DIR"}"
new_file="${new_file/.flac/.oga}"
if [ ! -f "$new_file" ]; then if [ ! -f "$new_file" ]; then
if [[ "$item" == *".flac" ]]; then if [[ "$item" == *".flac" ]]; then
((count+=1)) ((count+=1))