Skip to content

Commit

Permalink
Feature Update: Enable user defined HOMEBREW_PREFIX in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jobs-git authored Dec 27, 2024
1 parent a7705fd commit 4dba25e
Showing 1 changed file with 10 additions and 2 deletions.
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

0 comments on commit 4dba25e

Please sign in to comment.