From 1df0f05ac7c1abb848f1d5749345b3eeb5d496d2 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Dec 2007 14:08:16 -0600 Subject: [PATCH] installer: make rewrite-config.PL change only defined parameters Previously, it tried to slurp up all text between two occurences of '__' --- rewrite-config.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-config.PL b/rewrite-config.PL index 5a372a05d2..9f4297ab25 100644 --- a/rewrite-config.PL +++ b/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; -- 2.39.5