typo: sanitize path

This commit is contained in:
Vincent Riquer 2013-04-02 02:19:26 +02:00
parent 628e5db3f7
commit 799409aa0c

7
atom
View File

@ -1135,13 +1135,12 @@ getDestDir() {
replace=$(sanitizeFile "$disc")
destdir="${destdir//%\{disc\}/$replace}"
else
destdir+=(sanitizeFile "${filename%%/*}")
part="${filename#*/}/"
while :
destdir+=$(sanitizeFile "${filename%%/*}")
part=${filename#*/}
while [[ $part =~ / ]]
do
destdir+="/$(sanitizeFile "${part%%/*}")"
part=${part#*/}
[ -z "$part" ] && break
done
fi
if ! [ -d "$destdir" ]