Continue if target directory already exists

This commit is contained in:
Jerome Küttner 2022-01-07 17:48:04 +01:00
parent c6e8a06f10
commit 12435d3e24

View File

@ -682,8 +682,8 @@ do
output_file="${output_directory}/${currentFileNameScheme}.${extension}"
if [[ "${noclobber}" = "1" ]] && [[ -d "${output_directory}" ]]; then
log "Noclobber enabled but directory '${output_directory}' exists. Exiting to avoid overwriting"
exit 0
log "Noclobber enabled but directory '${output_directory}' exists. Skipping to avoid overwriting"
continue
fi
mkdir -p "${output_directory}"