[chruby] properly redirect errors on missing chruby

This commit is contained in:
Michal Cichra 2017-01-02 14:11:50 +01:00
commit 8f91babe95
No known key found for this signature in database
GPG key ID: 8F4BAE64224DE335

View file

@ -53,7 +53,7 @@ _source_from_omz_settings() {
}
function () {
local _chruby_homebrew_prefix="$(brew --prefix chruby) &> /dev/null"
local _chruby_homebrew_prefix="$(brew --prefix chruby 2> /dev/null)"
if _homebrew-installed && [[ -r "$_chruby_homebrew_prefix" ]] ; then
source "${_chruby_homebrew_prefix}/share/chruby/chruby.sh"