sanitized code according to coding style
This commit is contained in:
parent
e9a9deacb0
commit
5931f64308
@ -1,14 +1,14 @@
|
|||||||
function is_homebrew_installed() {
|
_homebrew-installed() {
|
||||||
type brew &> /dev/null
|
type brew &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_rbenv_installed() {
|
_rbenv-from-homebrew-installed() {
|
||||||
brew --prefix rbenv &> /dev/null
|
brew --prefix rbenv &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
FOUND_RBENV=0
|
FOUND_RBENV=0
|
||||||
rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv")
|
rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv")
|
||||||
if is_homebrew_installed && is_rbenv_installed ; then
|
if _homebrew-installed && _rbenv-from-homebrew-installed ; then
|
||||||
rbenvdirs=($(brew --prefix rbenv) "${rbenvdirs[@]}")
|
rbenvdirs=($(brew --prefix rbenv) "${rbenvdirs[@]}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user