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 =~ / ]]