aboutsummaryrefslogtreecommitdiff
path: root/pm_filter
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-28 13:44:37 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-28 13:44:37 -0400
commit9f02ee863454693dce8fcb209c28c1d2efa0ff77 (patch)
treea92e269a75abddee4d19aaaa6531021517dc21c5 /pm_filter
parentaa4f9fe23208bd95d248f0a5d7a3ee5fdefedb45 (diff)
downloadikiwiki-9f02ee863454693dce8fcb209c28c1d2efa0ff77.tar
ikiwiki-9f02ee863454693dce8fcb209c28c1d2efa0ff77.tar.gz
Add PREFIX/bin to the hardcoded PATH within ikiwiki.
Diffstat (limited to 'pm_filter')
-rwxr-xr-xpm_filter3
1 files changed, 3 insertions, 0 deletions
diff --git a/pm_filter b/pm_filter
index 287adc376..a66cf2154 100755
--- a/pm_filter
+++ b/pm_filter
@@ -23,3 +23,6 @@ elsif (/^use lib/) {
elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) {
$_=qq{$1\n};
}
+if (/^\$ENV{PATH}="(.*)";/) {
+ $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
+}