Simplify condition, in favour of rbenv

If rbenv is installed, we'll favour that because that's what is currently supported.
This commit is contained in:
David Cook
2024-03-25 13:22:40 +11:00
committed by Pauloparakleto
parent 0cd4682e36
commit 4a4135f261

View File

@@ -19,11 +19,9 @@ NO_COLOR='\033[0m'
# Check ruby version
RUBY_VERSION=$(cat .ruby-version)
if command -v rbenv > /dev/null && ! command rvm > /dev/null; then
if command -v rbenv > /dev/null; then
./script/rbenv-install.sh
fi
if command rvm > /dev/null; then
elif command rvm > /dev/null; then
./script/rvm-install.sh
fi