Skip to content

Instantly share code, notes, and snippets.

@samg
Last active August 29, 2015 13:56
Show Gist options
  • Save samg/9098647 to your computer and use it in GitHub Desktop.
Save samg/9098647 to your computer and use it in GitHub Desktop.
#!/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