Created
January 28, 2014 15:09
-
-
Save sycobuny/8669292 to your computer and use it in GitHub Desktop.
Get the latest ruby version installed via RVM
This file contains hidden or 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
RUBY_VER=$(rvm list strings | cut -d\- -f2 | sort -rn | head -n1) echo "ruby-$RUBY_VER-p$((for v in $(rvm list strings | grep "ruby-$RUBY_VER" | cut -d\- -f3); do; echo ${v[2,${#v}]}; done) | sort -rn | head -n1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment