Skip to content

Commit 4c4a300

Browse files
committed
Fixed Formula
1 parent 93cea83 commit 4c4a300

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Formula/ssh-studio.rb

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ def install
3232

3333
python3 = Formula["python@3.13"]
3434
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 && !prefix.empty?
41-
end
42-
43-
odie "Python 3.13 not found. Please ensure python@3.13 is installed: brew install python@3.13" unless python_bin&.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?
41+
end
42+
43+
unless python_bin&.exist?
44+
odie "Python 3.13 not found. Please ensure python@3.13 is installed: brew install python@3.13"
45+
end
4446

4547
ENV["PYTHON"] = python_bin.to_s
4648
system "meson", "setup", "build", *std_meson_args

0 commit comments

Comments
 (0)