Updated Ruby installer to use Frum
Necessary to match upcoming changes in the macOS Configuration project where Frum is now the default Ruby Version Manager instead of chruby.
This commit is contained in:
@@ -194,8 +194,8 @@ install_ruby() {
|
|||||||
local version="$(cat $HOME/.ruby-version | tr -d '\n')"
|
local version="$(cat $HOME/.ruby-version | tr -d '\n')"
|
||||||
|
|
||||||
if [[ ! -x "$(command -v ruby)" && -n $(ruby --version | grep --quiet "$version") ]]; then
|
if [[ ! -x "$(command -v ruby)" && -n $(ruby --version | grep --quiet "$version") ]]; then
|
||||||
$(get_homebrew_bin_root)/ruby-install "ruby-$version"
|
$(get_homebrew_bin_root)/frum install "$version"
|
||||||
chruby "$version"
|
$(get_homebrew_bin_root)/frum local "$version"
|
||||||
gem update --system && gem update
|
gem update --system && gem update
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user