summaryrefslogtreecommitdiff
path: root/gi/pipeline
diff options
context:
space:
mode:
Diffstat (limited to 'gi/pipeline')
-rwxr-xr-xgi/pipeline/evaluation-pipeline.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/pipeline/evaluation-pipeline.pl b/gi/pipeline/evaluation-pipeline.pl
index bbab2d64..06c89b60 100755
--- a/gi/pipeline/evaluation-pipeline.pl
+++ b/gi/pipeline/evaluation-pipeline.pl
@@ -156,7 +156,8 @@ if (-f $tuned_weights) {
chdir $outdir or die "Can't chdir to $outdir: $!";
$weights = `$cmd`;
die "MERT reported non-zero exit code" unless $? == 0;
- `cp $weights $tuned_weights`;
+ chomp $weights;
+ safesystem($tuned_weights, "cp $weights $tuned_weights");
print STDERR "TUNED WEIGHTS: $tuned_weights\n";
die "$tuned_weights is missing!" unless -f $tuned_weights;
}