remove -T from ikiwiki.in, add back if NOTAINT=0
parent
6e6e37b4fc
commit
7825960d31
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/perl -T
|
#!/usr/bin/perl
|
||||||
$ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
|
$ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
|
||||||
delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
|
delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@ elsif (/^use lib/) {
|
||||||
$_="use lib '$libdir';\n";
|
$_="use lib '$libdir';\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!.*perl.*?) -T$}) {
|
elsif ($. == 1 && ($ENV{NOTAINT}=0) && m{^(#!.*perl.*?)$}) {
|
||||||
$_=qq{$1\n};
|
$_=qq{$1 -T\n};
|
||||||
}
|
}
|
||||||
elsif (/^\$ENV{PATH}="(.*)";/) {
|
elsif (/^\$ENV{PATH}="(.*)";/) {
|
||||||
$_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
|
$_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
|
||||||
|
|
Loading…
Reference in New Issue