]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
remove -T from ikiwiki.in, add back if NOTAINT=0
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 22 May 2009 17:45:38 +0000 (13:45 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 22 May 2009 17:46:07 +0000 (13:46 -0400)
ikiwiki.in
pm_filter

index c79a2bfef98dd8ee6a3042bfdde919f3304534b0..4e9b812f852cb4b9805c51d7af6c0d0576d8a976 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -T
+#!/usr/bin/perl
 $ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
 delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
 
index 4984f32d906eae416001dad7f29baab986c0d8c2..1e51f9dd347c79e738d4aa9b4ef33da86aeafbfa 100755 (executable)
--- a/pm_filter
+++ b/pm_filter
@@ -25,8 +25,8 @@ elsif (/^use lib/) {
                $_="use lib '$libdir';\n";
        }
 }
-elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!.*perl.*?) -T$}) {
-       $_=qq{$1\n};
+elsif ($. == 1 && ($ENV{NOTAINT}=0) && m{^(#!.*perl.*?)$}) {
+       $_=qq{$1 -T\n};
 }
 elsif (/^\$ENV{PATH}="(.*)";/) {
        $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";