Fix getDestDir when no renaming is done
This commit is contained in:
parent
5c38663f50
commit
55b3c1ee81
@ -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 =~ / ]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user