Skip to content

Instantly share code, notes, and snippets.

@cschiewek
Forked from gshutler/update-rbenv-rubygems.sh
Created August 30, 2017 13:14
Show Gist options
  • Save cschiewek/4087f3db471719ab513eb88e2f556557 to your computer and use it in GitHub Desktop.
Save cschiewek/4087f3db471719ab513eb88e2f556557 to your computer and use it in GitHub Desktop.
Update Rubygems for all rbenv rubies
#! /usr/bin/env bash
set -e
for version in `asdf list ruby`; do
asdf local ruby "$version"
echo "Updating rubygems for $version"
gem update --system --no-document --quiet
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment