We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4a300 commit 91e2f59Copy full SHA for 91e2f59
1 file changed
Formula/ssh-studio.rb
@@ -33,11 +33,9 @@ def install
33
python3 = Formula["python@3.13"]
34
python_bin = if (python3.opt_bin/"python3").exist?
35
python3.opt_bin/"python3"
36
- elsif (python3.installed_prefix/"bin/python3").exist?
37
- python3.installed_prefix/"bin/python3"
38
else
39
- prefix = `brew --prefix python@3.13`.strip
40
- Pathname.new("#{prefix}/bin/python3") if prefix.present?
+ prefix = `brew --prefix python@3.13 2>/dev/null`.strip
+ Pathname.new("#{prefix}/bin/python3") unless prefix.empty?
41
end
42
43
unless python_bin&.exist?
0 commit comments