Last active
August 29, 2015 13:56
-
-
Save samg/9098647 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# recompile all rbenv versions of ruby to avoid CVE-2013-6393 pwnage | |
# https://groups.google.com/forum/#!topic/rubysec-announce/3sx25iR7yHQ | |
# | |
# curl https://gist.github.com/samg/9098647/raw | bash | |
set -x | |
cd ~/.rbenv/plugins/ruby-build/ | |
git pull | |
for ruby in ~/.rbenv/versions/*; do | |
rbenv uninstall -f `basename $ruby` | |
rbenv install `basename $ruby` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment