X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9f02ee863454693dce8fcb209c28c1d2efa0ff77..516908cc8e90743fc8616ed8421170b3da46ffd4:/pm_filter diff --git a/pm_filter b/pm_filter index a66cf2154..98cb5bd9e 100755 --- a/pm_filter +++ b/pm_filter @@ -20,9 +20,9 @@ elsif (/^use lib/) { $_="use lib '$libdir';\n"; } } -elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) { +elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!.*perl.*?) -T$}) { $_=qq{$1\n}; } -if (/^\$ENV{PATH}="(.*)";/) { +elsif (/^\$ENV{PATH}="(.*)";/) { $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n"; }