Fixed elif in loadHomebrew
This commit is contained in:
parent
0e8d9756ac
commit
4d53b7185b
4 changed files with 8 additions and 8 deletions
|
@ -184,9 +184,9 @@ loadHomebrew() {
|
||||||
if ! command -v brew > /dev/null; then
|
if ! command -v brew > /dev/null; then
|
||||||
if [ -f /usr/local/bin/brew ]; then
|
if [ -f /usr/local/bin/brew ]; then
|
||||||
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
||||||
if [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
||||||
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
||||||
if [ -d "$HOME/.linuxbrew" ]; then
|
elif [ -d "$HOME/.linuxbrew" ]; then
|
||||||
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
||||||
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
||||||
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
|
@ -153,9 +153,9 @@ loadHomebrew() {
|
||||||
if ! command -v brew > /dev/null; then
|
if ! command -v brew > /dev/null; then
|
||||||
if [ -f /usr/local/bin/brew ]; then
|
if [ -f /usr/local/bin/brew ]; then
|
||||||
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
||||||
if [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
||||||
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
||||||
if [ -d "$HOME/.linuxbrew" ]; then
|
elif [ -d "$HOME/.linuxbrew" ]; then
|
||||||
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
||||||
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
||||||
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
|
@ -3,9 +3,9 @@ loadHomebrew() {
|
||||||
if ! command -v brew > /dev/null; then
|
if ! command -v brew > /dev/null; then
|
||||||
if [ -f /usr/local/bin/brew ]; then
|
if [ -f /usr/local/bin/brew ]; then
|
||||||
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
||||||
if [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
||||||
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
||||||
if [ -d "$HOME/.linuxbrew" ]; then
|
elif [ -d "$HOME/.linuxbrew" ]; then
|
||||||
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
||||||
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
||||||
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
|
@ -217,9 +217,9 @@ loadHomebrew() {
|
||||||
if ! command -v brew > /dev/null; then
|
if ! command -v brew > /dev/null; then
|
||||||
if [ -f /usr/local/bin/brew ]; then
|
if [ -f /usr/local/bin/brew ]; then
|
||||||
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
logg info "Using /usr/local/bin/brew" && eval "$(/usr/local/bin/brew shellenv)"
|
||||||
if [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
|
||||||
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
logg info "Using ${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" && eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
|
||||||
if [ -d "$HOME/.linuxbrew" ]; then
|
elif [ -d "$HOME/.linuxbrew" ]; then
|
||||||
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
logg info "Using $HOME/.linuxbrew/bin/brew" && eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
|
||||||
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
|
||||||
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
logg info 'Using /home/linuxbrew/.linuxbrew/bin/brew' && eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
Loading…
Reference in a new issue