Skip to content

Commit

Permalink
Fix 'required_ruby_version: unbound variable'
Browse files Browse the repository at this point in the history
  • Loading branch information
vsppedro committed Nov 4, 2020
1 parent 02396a8 commit 9faae24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/setup
Expand Up @@ -237,10 +237,10 @@ ensure-ruby-installed() {
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"
rvm install $required_ruby_version
rvm use $required_ruby_version
if ! (rvm list | grep $REQUIRED_RUBY_VERSION'\>' &>/dev/null); then
banner "Installing Ruby $REQUIRED_RUBY_VERSION with rvm"
rvm install $REQUIRED_RUBY_VERSION
rvm use $REQUIRED_RUBY_VERSION
fi
else
error "You don't seem to have a Ruby manager installed."
Expand Down

0 comments on commit 9faae24

Please sign in to comment.