mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
16 lines
404 B
Bash
Executable File
16 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Install our selected Ruby version defined in the .ruby-version file.
|
|
#
|
|
# If our ruby-build version is outdated and it can't build the version we want
|
|
# then we try upgrading ruby-build and installing again.
|
|
|
|
if rbenv install --skip-existing; then
|
|
echo "Ruby is installed."
|
|
else
|
|
echo "Upgrading rbenv's ruby-build:"
|
|
git -C "$(rbenv root)"/plugins/ruby-build pull
|
|
|
|
rbenv install
|
|
fi
|