Skip to content

Commit

Permalink
Merge pull request #308 from Homebrew/fix/attempt_sourcing_shellenv
Browse files Browse the repository at this point in the history
setup-homebrew: source homebrew from standard locations
  • Loading branch information
MikeMcQuaid authored Sep 27, 2022
2 parents b4ee558 + 5a84a3b commit a7d313c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/setup-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ jobs:
- run: brew test-bot --only-setup

- run: brew test-bot --only-tap-syntax
# temporary disable this until brew audit is fixed here
# see https://github.com/Homebrew/actions/pull/308
if: matrix.os != 'ubuntu-latest'
8 changes: 6 additions & 2 deletions setup-homebrew/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ function git_retry {

# Check brew's existence
if ! which brew &>/dev/null; then
echo "Could not find 'brew' command in PATH."
exit 1
PATH="/home/linuxbrew/.linuxbrew/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"

if ! which brew &>/dev/null; then
echo "Could not find 'brew' command in PATH or standard locations."
exit 1
fi
fi

# Set basic variables
Expand Down

0 comments on commit a7d313c

Please sign in to comment.