Skip to content

Commit

Permalink
Merge pull request Homebrew#11431 from carlocab/perl-shebang
Browse files Browse the repository at this point in the history
Fix perl shebang rewriting for `perl` formula
  • Loading branch information
Bo98 committed May 23, 2021
2 parents a3e6a84 + ada399c commit 76cfe88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/mac/keg_relocate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def prepare_relocation_to_locations
relocation = generic_prepare_relocation_to_locations

brewed_perl = runtime_dependencies&.any? { |dep| dep["full_name"] == "perl" && dep["declared_directly"] }
perl_path = if brewed_perl
perl_path = if brewed_perl || name == "perl"
"#{HOMEBREW_PREFIX}/opt/perl/bin/perl"
else
perl_version = if tab["built_on"].present?
Expand Down

0 comments on commit 76cfe88

Please sign in to comment.