rbenv: update caveats to only load if present

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Attila Györffy 2012-05-04 21:44:04 +01:00 committed by Adam Vandenberg
parent 5f6180a0df
commit fadd2315c6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Rbenv < Formula
def caveats; <<-EOS.undent
To enable shims and autocompletion, add rbenv init to your profile:
eval "$(rbenv init -)"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
EOS
end
end