fix continuing for existing files

This commit is contained in:
Jerome Küttner 2022-01-08 21:13:28 +01:00
parent 7f1f3df020
commit b87b08ee6a

View File

@ -712,7 +712,7 @@ do
if [[ "${noclobber}" = "1" ]] && [[ -d "${output_directory}" ]]; then if [[ "${noclobber}" = "1" ]] && [[ -d "${output_directory}" ]]; then
log "Noclobber enabled but directory '${output_directory}' exists. Skipping to avoid overwriting" log "Noclobber enabled but directory '${output_directory}' exists. Skipping to avoid overwriting"
rm -f "${metadata_file}" rm -f "${metadata_file}" "${tmp_chapter_file}"
continue continue
fi fi
mkdir -p "${output_directory}" mkdir -p "${output_directory}"