Skip to content

Commit

Permalink
Support for folks using chruby
Browse files Browse the repository at this point in the history
  • Loading branch information
booch authored and mcmire committed Jul 6, 2019
1 parent 892a912 commit b7b44a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ install-dependencies() {
banner "Installing Ruby $RUBY_VERSION with rbenv"
rbenv install --skip-existing "$RUBY_VERSION"
fi
elif has-executable chruby-exec; then
PREFIX='' source /usr/local/share/chruby/chruby.sh
if ! (chruby '' | grep $RUBY_VERSION'\>' &>/dev/null); then
if has-executable install-ruby; then
banner "Installing Ruby $RUBY_VERSION with install-ruby"
install-ruby "$RUBY_VERSION"
else
error "Please install Ruby $RUBY_VERSION"
fi
fi
elif has-executable rvm; then
if ! (rvm list | grep $required_ruby_version'\>' &>/dev/null); then
banner "Installing Ruby $required_ruby_version with rvm"
Expand Down

0 comments on commit b7b44a5

Please sign in to comment.