fix: fix brew path

This commit is contained in:
Amin Yahyaabadi 2021-09-16 18:13:44 -05:00
parent b964951e50
commit d452c39ca0
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { execFileSync } from "child_process"
import { dirname } from "path"
import which from "which"
let binDir: string | undefined
@ -14,7 +15,7 @@ export function setupBrew(_version: string, _setupCppDir: string, _arch: string)
const maybeBinDir = which.sync("brew", { nothrow: true })
if (maybeBinDir !== null) {
binDir = maybeBinDir
binDir = dirname(maybeBinDir)
return { binDir }
}