diff --git a/Sources/Graphaello/Commands/checkVersion.swift b/Sources/Graphaello/Commands/checkVersion.swift index 7944ff6..68823d3 100644 --- a/Sources/Graphaello/Commands/checkVersion.swift +++ b/Sources/Graphaello/Commands/checkVersion.swift @@ -26,7 +26,7 @@ private struct HomebrewInfo: Decodable { private func fetchInstalledVersion() -> String? { let task = Process() - task.launchPath = "/usr/local/bin/brew" + task.launchPath = try? ExecutableFinder.find("brew")?.url.path task.arguments = ["info", "graphaello", "--json"] let outputPipe = Pipe()