Remove only stage files.

This commit is contained in:
Daniel Nichter
2013-05-08 16:00:25 -07:00
parent 28b602bf43
commit d4013adf53

View File

@@ -6271,9 +6271,9 @@ sub run_service {
$exit_status |= $cmd_exit_status; $exit_status |= $cmd_exit_status;
} }
# Remove tmp output files. # Remove staged files. Anything to save should have been moved
foreach my $file ( @output_files ) { # from staging by a task.
next unless defined $file && -f $file; foreach my $file ( glob "$tmp_dir/$prefix." . $service->name . ".*" ) {
unlink $file unlink $file
or _warn("Error removing $file: $OS_ERROR"); or _warn("Error removing $file: $OS_ERROR");
} }