Fixed Ruby installer to pass configuration options

Necessary to ensure Ruby installs with the correct version of OpenSSL
with a few other options that helps with the successful install of
Ruby.
This commit is contained in:
Brooke Kuhlmann
2022-12-24 07:35:00 -07:00
parent ea4027714a
commit b3f799acfc

View File

@@ -205,8 +205,11 @@ 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)/frum install "$version" "$(get_homebrew_bin_root)"/frum install "$version" \
$(get_homebrew_bin_root)/frum local "$version" --with-openssl-dir="$(brew --prefix openssl)" \
--enable-shared \
--disable-silent-rules
"$(get_homebrew_bin_root)"/frum local "$version"
gem update --system && gem update gem update --system && gem update
fi fi
} }