diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index e7e9954308..f353abd39e 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -175,6 +175,7 @@ if ($completedJobID) { }; if ($runinbackground) { $job->finish($results); + exit 0; } else { $template->param(staged => $num_valid, matched => $num_with_matches,