Skip to content

Commit

Permalink
Added deletion of .passed file in DataCite drush command.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Oct 25, 2017
1 parent c8dd378 commit 9335390
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ function drush_islandora_doi_datacite_assign_dois_preflight() {
$errors = islandora_doi_datacite_check_required_values($dc_values);
$error_file_path = $input_file_path . '.errors';
$passed_file_path = $input_file_path . '.passed';
if (file_exists($passed_file_path)) {
unlink($passed_file_path);
}
if (count($errors)) {
drush_log(dt("!pid does not meet DataCite's metadata requirements", array('!pid' => $pid)), 'warning');
foreach ($errors as $error) {
Expand Down

0 comments on commit 9335390

Please sign in to comment.