mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
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:
committed by
Pauloparakleto
parent
0cd4682e36
commit
4a4135f261
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user