Compare commits

..

2 Commits

Author SHA1 Message Date
Vincent Riquer
79cfcc6948 Merge branch '4-with-rename-pattern-destination-files-can-have-in-db-if-tags-missing' into 'master'
Resolve "With rename pattern, destination files can have "//" in DB if tags missing"

Closes #4

See merge request atom/AtOM!7
2025-01-31 01:16:50 +00:00
Vincent Riquer
8c054e6025 Resolve "With rename pattern, destination files can have "//" in DB if tags missing" 2025-01-31 01:16:50 +00:00

View File

@ -86,7 +86,8 @@ getDestDir() {
echo "$thispart" >&${toascii[1]} echo "$thispart" >&${toascii[1]}
read -r -u${toascii[0]} thispart read -r -u${toascii[0]} thispart
fi fi
destdir+="/$(sanitizeFile "$thispart" dir)" sanitized="$(sanitizeFile "$thispart" dir)"
destdir+="${sanitized:+/}$sanitized"
part=${part#*/} part=${part#*/}
done done
fi fi