scripts/utility in rvm-0.0.70 vs scripts/utility in rvm-0.0.71
- old
+ new
@@ -399,41 +399,69 @@
else
echo -e " $version : $string"
fi
done ; unset version
- echo -e "\njruby:\n"
- for version in $(/bin/ls -l $rvm_path/ 2> /dev/null | awk '/jruby-.*/ { print $NF }') ; do
- string=$($rvm_path/$version/bin/ruby -v)
+ echo -e "\nree:\n"
+ for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/ree-.*/ { print $NF }') ; do
+ string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
if [[ "$version" = "$current_ruby" ]] ; then
echo -e "=> $version : $string"
selected="1"
else
echo -e " $version : $string"
fi
done ; unset version
- echo -e "\nree:\n"
- for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/ree-.*/ { print $NF }') ; do
+ echo -e "\nmput:\n"
+ for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/mput-.*/ { print $NF }') ; do
string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
if [[ "$version" = "$current_ruby" ]] ; then
echo -e "=> $version : $string"
selected="1"
else
echo -e " $version : $string"
fi
done ; unset version
- echo -e "\nmput:\n"
- for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/mput-.*/ { print $NF }') ; do
- string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
+ echo -e "\njruby:\n"
+ for version in $(/bin/ls -l $rvm_path/ 2> /dev/null | awk '/jruby-.*/ { print $NF }') ; do
+ string=$($rvm_path/$version/bin/ruby -v)
if [[ "$version" = "$current_ruby" ]] ; then
echo -e "=> $version : $string"
selected="1"
else
echo -e " $version : $string"
fi
done ; unset version
+
+ echo -e "\nrbx:\n"
+ # for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/rbx-.*/ { print $NF }') ; do
+ for version in "rbx-head" ; do
+ if [[ -f "$rvm_path/$version/bin/ruby" ]] ; then
+ string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
+ if [[ "$version" = "$current_ruby" ]] ; then
+ echo -e "=> $version : $string"
+ selected="1"
+ else
+ echo -e " $version : $string"
+ fi
+ fi
+ done ; unset version
+
+
+ if [[ "Darwin" = "$(uname)" ]] ; then
+ echo -e "\nmacruby:\n"
+ for version in $(/bin/ls $rvm_path/ 2> /dev/null | awk '/macruby-.*/ { print $NF }') ; do
+ string="$($rvm_path/$version/bin/ruby -v | tr "\n" ' ' )"
+ if [[ "$version" = "$current_ruby" ]] ; then
+ echo -e "=> $version : $string"
+ selected="1"
+ else
+ echo -e " $version : $string"
+ fi
+ done ; unset version
+ fi
if [[ -f "$rvm_path/default" ]] && [[ -s $rvm_path/default ]] ; then
version=$(grep '^MY_RUBY_HOME' ~/.rvm/default | awk -F"'" '{print $2}' | xargs basename)
if [[ ! -z "$version" ]] ; then
echo -e "\ndefault:\n"