Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
bin/brew: use a function to avoid issues.
Browse files Browse the repository at this point in the history
Otherwise when `bin/brew` is updated in-place Bash will carry on from
the offset and this can cause issues.

Thanks to `@UniqMartin` for pointing this out.
  • Loading branch information
MikeMcQuaid committed Jan 18, 2016
1 parent 6c5797a commit f7c6ffe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ then
# Hide shellcheck complaint:
# shellcheck source=/dev/null
source "$HOMEBREW_BASH_COMMAND"
"$HOMEBREW_COMMAND" "$@"
exit $?
{ "$HOMEBREW_COMMAND" "$@"; exit $?; }
else
exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@"
fi

0 comments on commit f7c6ffe

Please sign in to comment.