summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 0e75369ce..777038e2e 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -367,11 +367,7 @@ sub template2file($$%) {
local *OUT; local *IN;
open IN, $inputfile or die "Can't open $inputfile $!";
- if ($::testing) {
- *OUT = *STDOUT;
- } else {
- open OUT, ">$outputfile" or die "Can't open $outputfile $!";
- }
+ open OUT, ">$outputfile" or die "Can't open $outputfile $!";
map { s/@@@(.*?)@@@/$toreplace{$1}/g; print OUT; } <IN>;
}