typo: sanitize path
This commit is contained in:
parent
628e5db3f7
commit
799409aa0c
7
atom
7
atom
@ -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" ]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user