Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

installer: make rewrite-config.PL change only defined parameters

Previously, it tried to slurp up all text between two
occurences of '__'
  • Loading branch information...
commit 1df0f05ac7c1abb848f1d5749345b3eeb5d496d2 1 parent 8b75eae
Galen Charlton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  rewrite-config.PL
View
2  rewrite-config.PL
@@ -115,7 +115,7 @@ foreach $key (keys %configuration) {
$fname = $ARGV[0];
$file = read_file($fname);
-$file =~ s/__.*?__/$configuration{$&}/seg;
+$file =~ s/__.*?__/exists $configuration{$&} ? $configuration{$&} : $&/seg;
chmod 0644, $fname;
open(OUTPUT,">$fname") || die "Can't open $fname for write: $!";
print OUTPUT $file;
Please sign in to comment.
Something went wrong with that request. Please try again.