Skip to content

Commit 91e2f59

Browse files
committed
Fix Python 3.13 installation detection in formula
1 parent 4c4a300 commit 91e2f59

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Formula/ssh-studio.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ def install
3333
python3 = Formula["[email protected]"]
3434
python_bin = if (python3.opt_bin/"python3").exist?
3535
python3.opt_bin/"python3"
36-
elsif (python3.installed_prefix/"bin/python3").exist?
37-
python3.installed_prefix/"bin/python3"
3836
else
39-
prefix = `brew --prefix [email protected]`.strip
40-
Pathname.new("#{prefix}/bin/python3") if prefix.present?
37+
prefix = `brew --prefix [email protected] 2>/dev/null`.strip
38+
Pathname.new("#{prefix}/bin/python3") unless prefix.empty?
4139
end
4240

4341
unless python_bin&.exist?

0 commit comments

Comments
 (0)