Fix getDestDir when no renaming is done
This commit is contained in:
parent
5c38663f50
commit
55b3c1ee81
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
getDestDir() {
|
getDestDir() {
|
||||||
destdir="${destinationpath[$destination]}/"
|
|
||||||
if [ -n "${destinationrenamepath[$destination]}" ] \
|
if [ -n "${destinationrenamepath[$destination]}" ] \
|
||||||
&& (
|
&& (
|
||||||
(
|
(
|
||||||
@ -38,6 +37,7 @@ getDestDir() {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
|
destdir="${destinationpath[$destination]}/"
|
||||||
if (( ${destinationascii["$destination"]} ))
|
if (( ${destinationascii["$destination"]} ))
|
||||||
then
|
then
|
||||||
echo "$album" >&${toascii[1]}
|
echo "$album" >&${toascii[1]}
|
||||||
@ -75,6 +75,7 @@ getDestDir() {
|
|||||||
replace=$(sanitizeFile "$disc" dir)
|
replace=$(sanitizeFile "$disc" dir)
|
||||||
destdir="${destdir//?(\[)%\{disc\}?(\])/$replace}"
|
destdir="${destdir//?(\[)%\{disc\}?(\])/$replace}"
|
||||||
else
|
else
|
||||||
|
destdir="${destinationpath[$destination]}/"
|
||||||
destdir+=$(sanitizeFile "${filename%%/*}" dir)
|
destdir+=$(sanitizeFile "${filename%%/*}" dir)
|
||||||
part=${filename#*/}
|
part=${filename#*/}
|
||||||
while [[ $part =~ / ]]
|
while [[ $part =~ / ]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user