Merge pull request #187 from jkuettner/feature/continue-on-existing

Continue if the current file already exists
This commit is contained in:
Krumpet Pirate 2022-01-07 18:05:26 -05:00 committed by GitHub
commit c8870e29fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -682,8 +682,9 @@ 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"
rm -f "${metadata_file}"
continue
fi
mkdir -p "${output_directory}"