From 0c52d8fdbedd1cd519178cb9ad3fe21f0b3f36a0 Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Sun, 5 Jan 2025 02:43:54 -0800 Subject: [PATCH] Fix flags for upgrade/update --- bin/install-ruby | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/install-ruby b/bin/install-ruby index 2b870c3..a6fb918 100755 --- a/bin/install-ruby +++ b/bin/install-ruby @@ -116,7 +116,7 @@ export RUBY_VERSION="${RUBY_VERSION:-${RUBY_FILE_VERSION:-${DEFAULT_RUBY_VERSION if [[ $OS =~ darwin ]]; then export PACKAGES="rbenv jemalloc rust" export INSTALLER="brew " - export INSTALLER_FLAGS=" --quiet --display-times " + export INSTALLER_FLAGS=" --quiet " export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES export RUBY_CFLAGS="-Wno-error=implicit-function-declaration" else @@ -151,12 +151,12 @@ set -e if [[ $OS =~ darwin ]]; then echo "Updating brew..." - ${INSTALLER} update ${INSTALLER_FLAGS} >/dev/null else echo "Updating apt-get..." - ${INSTALLER} update ${INSTALLER_FLAGS} >/dev/null fi +${INSTALLER} update >/dev/null + command -V rbenv >/dev/null || { echo "Installing rbenv..." ${INSTALLER} install ${INSTALLER_FLAGS} rbenv @@ -256,5 +256,3 @@ if [[ -n $temp_dir && -d $temp_dir && -s $temp_dir/.ruby-version ]]; then mv $temp_dir/.ruby-version . fi - -