pre-commit: fix brew style.

Part of https://github.com/Homebrew/brew/pull/12048.
master
Mike McQuaid 2021-09-14 10:34:40 +01:00
parent b7ecbd65ce
commit b4db221315
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class PreCommit < Formula
def post_install def post_install
xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3" xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3"
dirs_to_fix = [libexec/"lib/python#{xy}"] dirs_to_fix = [libexec/"lib/python#{xy}"]
dirs_to_fix << libexec/"bin" if OS.linux? dirs_to_fix << (libexec/"bin") if OS.linux?
dirs_to_fix.each do |folder| dirs_to_fix.each do |folder|
folder.each_child do |f| folder.each_child do |f|
next unless f.symlink? next unless f.symlink?