From 55b3c1ee81677c3e2a3916b74c304204c36cbea9 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 12 Feb 2020 23:17:31 +0100 Subject: [PATCH] Fix getDestDir when no renaming is done --- lib/files/getDestDir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/files/getDestDir b/lib/files/getDestDir index 436d1bd..e92a899 100644 --- a/lib/files/getDestDir +++ b/lib/files/getDestDir @@ -1,6 +1,5 @@ #!/bin/bash getDestDir() { - destdir="${destinationpath[$destination]}/" if [ -n "${destinationrenamepath[$destination]}" ] \ && ( ( @@ -38,6 +37,7 @@ getDestDir() { ) ) then + destdir="${destinationpath[$destination]}/" if (( ${destinationascii["$destination"]} )) then echo "$album" >&${toascii[1]} @@ -75,6 +75,7 @@ getDestDir() { replace=$(sanitizeFile "$disc" dir) destdir="${destdir//?(\[)%\{disc\}?(\])/$replace}" else + destdir="${destinationpath[$destination]}/" destdir+=$(sanitizeFile "${filename%%/*}" dir) part=${filename#*/} while [[ $part =~ / ]]