-
-
Save lcuevastodoit/0cb62e690e380bdc503047658796a34c to your computer and use it in GitHub Desktop.
Update Rubygems for all rbenv rubies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -e | |
eval "$(rbenv init -)" | |
for version in `rbenv whence gem`; do | |
rbenv shell "$version" | |
echo "Updating rubygems for $version" | |
gem update --system --no-document --quiet | |
echo "done" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment