Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Update: Enable user defined HOMEBREW_PREFIX in Linux #921

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,16 @@ then
else
UNAME_MACHINE="$(uname -m)"

# On Linux, this script installs to /home/linuxbrew/.linuxbrew only
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
# On Linux, this script installs to /home/linuxbrew/.linuxbrew only if HOMEBREW_PREFIX is not set.

if [ -z "$HOMEBREW_PREFIX" ]; then
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
echo "HOMEBREW_PREFIX is not set. Installing to $HOMEBREW_PREFIX"
else
echo "HOMEBREW_PREFIX is set to: $HOMEBREW_PREFIX"
echo "Installing to $HOMEBREW_PREFIX"
fi

HOMEBREW_REPOSITORY="${HOMEBREW_PREFIX}/Homebrew"
HOMEBREW_CACHE="${HOME}/.cache/Homebrew"

Expand Down
Loading