mirror of
https://github.com/hcartiaux/dotfiles.git
synced 2024-10-18 17:25:23 +02:00
[bash] Hide an error message when ruby is not in the $PATH
This commit is contained in:
parent
3efa85e70d
commit
66e875cab0
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ fi
|
|||
|
||||
# RVM specific (see http://beginrescueend.com/)
|
||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" || true
|
||||
if [[ $(which ruby | grep -c "$HOME/.rvm") != 0 ]] ; then
|
||||
if [[ $(which ruby | grep -c "$HOME/.rvm" 2>/dev/null) != 0 ]] ; then
|
||||
# Get off my lawn
|
||||
rvm reset
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue