mirror of
https://github.com/Homebrew/brew.git
synced 2026-10-28 09:34:42 +08:00
bootstrap: update to match main configuration
This commit is contained in:
1 file changed
+21
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
bundle_bootstrap() {
|
||||
if [[ "${HOMEBREW_INSIDE_BUNDLE:-}" != "1" ]]; then
|
||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||
eval "$(brew bundle --check --install env)"
|
||||
fi
|
||||
|
||||
# Share installed gems between worktrees belonging to the same repository.
|
||||
local shared_bundle_path
|
||||
shared_bundle_path="$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")/vendor/bundle"
|
||||
export BUNDLE_AUTO_INSTALL=1
|
||||
export BUNDLE_CLEAN=false
|
||||
export BUNDLE_PATH="${shared_bundle_path}"
|
||||
}
|
||||
|
||||
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
|
||||
set -euo pipefail
|
||||
bundle_bootstrap
|
||||
bundle check || bundle install
|
||||
fi
|
||||
Reference in new issue
Block a user