We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7705fd commit 4dba25eCopy full SHA for 4dba25e
install.sh
@@ -170,8 +170,16 @@ then
170
else
171
UNAME_MACHINE="$(uname -m)"
172
173
- # On Linux, this script installs to /home/linuxbrew/.linuxbrew only
174
- HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
+ # On Linux, this script installs to /home/linuxbrew/.linuxbrew only if HOMEBREW_PREFIX is not set.
+
175
+ if [ -z "$HOMEBREW_PREFIX" ]; then
176
+ HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
177
+ echo "HOMEBREW_PREFIX is not set. Installing to $HOMEBREW_PREFIX"
178
+ else
179
+ echo "HOMEBREW_PREFIX is set to: $HOMEBREW_PREFIX"
180
+ echo "Installing to $HOMEBREW_PREFIX"
181
+ fi
182
183
HOMEBREW_REPOSITORY="${HOMEBREW_PREFIX}/Homebrew"
184
HOMEBREW_CACHE="${HOME}/.cache/Homebrew"
185
0 commit comments