Skip to content

Commit d9ea8bb

Browse files
Check if homebrew_prefix exists
1 parent f15290f commit d9ea8bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ else
289289
if brew_cmd.found()
290290
result = run_command(brew_cmd, '--prefix', check: false)
291291
if result.returncode() == 0
292-
homebrew_prefix = result.stdout().strip()
292+
detected_prefix = result.stdout().strip()
293+
if detected_prefix != '' and fs.is_dir(detected_prefix)
294+
homebrew_prefix = detected_prefix
295+
endif
293296
endif
294297
endif
295298

0 commit comments

Comments
 (0)