Skip to content

Commit

Permalink
fix: homebrew bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 28, 2024
1 parent 6bc7242 commit d3cae3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ export async function installTtyd(version?: string): Promise<string> {
}
core.debug(`MacOS ttyd does not support versioning`)
await exec.exec('brew', args)
const brewPrefixOutput = await exec.getExecOutput('brew', ['--prefix'])
const brewPrefix = brewPrefixOutput.stdout.trim()
const cachePath = await tc.cacheFile(
'/usr/local/bin/ttyd',
`${brewPrefix}/bin/ttyd`,
'ttyd',
'ttyd',
version
Expand Down

0 comments on commit d3cae3c

Please sign in to comment.