From 053de5489bb2a00855f46b131fe676cc3bc94579 Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Fri, 19 Sep 2014 00:53:16 -0400 Subject: Anchor subst to opening ", avoiding side effects. SYSCONFDIR might be overridden to a value containing "etc/ikiwiki", in which case we might overzealously substitute more than once, especially if SYSCONFDIR is overridden to different values at build and install time. Avoid this by matching only the instances we meant to match. --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index ad3e4623c..13ed103c7 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -60,7 +60,7 @@ docwiki: $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.in -setup docwiki.setup -refresh sysconfdir: - $(PERL) -pi -e "s|/etc/ikiwiki|$(SYSCONFDIR)|g" $(sysconfdir_scripts) + $(PERL) -pi -e "s|\"/etc/ikiwiki|\"$(SYSCONFDIR)|g" $(sysconfdir_scripts) extra_clean: $(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.in -setup docwiki.setup -clean -- cgit v1.2.3