Browse Source

remove -T from ikiwiki.in, add back if NOTAINT=0

extendedlink
Joey Hess 11 years ago
parent
commit
7825960d31
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      ikiwiki.in
  2. +2
    -2
      pm_filter

+ 1
- 1
ikiwiki.in View File

@@ -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}};



+ 2
- 2
pm_filter View File

@@ -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";


Loading…
Cancel
Save