checkbashisms: run under tainted mode (#26319)
It's not a universal solution but I think it'd work okay here, unless I'm missing something. Docs: * http://perldoc.perl.org/perlglossary.html#tainted * https://docstore.mik.ua/orelly/linux/cgi/ch08_04.htm Closes https://github.com/Homebrew/homebrew-core/pull/26290.
This commit is contained in:
parent
015f3f25a1
commit
0ae1021bdf
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ class Checkbashisms < Formula
|
|||
bottle :unneeded
|
||||
|
||||
def install
|
||||
inreplace "scripts/checkbashisms.pl", "###VERSION###", version
|
||||
inreplace "scripts/checkbashisms.pl" do |s|
|
||||
s.gsub! "###VERSION###", version
|
||||
s.gsub! "#!/usr/bin/perl", "#!/usr/bin/perl -T"
|
||||
end
|
||||
|
||||
bin.install "scripts/checkbashisms.pl" => "checkbashisms"
|
||||
man1.install "scripts/checkbashisms.1"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue