diff --git a/Formula/pre-commit.rb b/Formula/pre-commit.rb index e0885d05a8..4e4af91d52 100644 --- a/Formula/pre-commit.rb +++ b/Formula/pre-commit.rb @@ -28,6 +28,7 @@ class PreCommit < Formula lib_python_path = Pathname.glob(libexec/"lib/python*").first lib_python_path.each_child do |f| next unless f.symlink? + realpath = f.realpath rm f ln_s realpath, f