From 4a4135f261bce9c62e0d226daca98fd5aeb9d965 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 25 Mar 2024 13:22:40 +1100 Subject: [PATCH] Simplify condition, in favour of rbenv If rbenv is installed, we'll favour that because that's what is currently supported. --- script/setup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/script/setup b/script/setup index 8e4c0aa941..eddefb6b8c 100755 --- a/script/setup +++ b/script/setup @@ -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