1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[bash] Hide an error message when ruby is not in the $PATH

This commit is contained in:
Hyacinthe Cartiaux 2017-08-24 13:43:38 +02:00
parent 3efa85e70d
commit 66e875cab0

View file

@ -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