Skip to content

Commit

Permalink
Fix flags for upgrade/update
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Jan 5, 2025
1 parent 4ac4bc3 commit 0c52d8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bin/install-ruby
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -256,5 +256,3 @@ if [[ -n $temp_dir && -d $temp_dir && -s $temp_dir/.ruby-version ]]; then
mv $temp_dir/.ruby-version .
fi



0 comments on commit 0c52d8f

Please sign in to comment.