bin/rvm-install in rvm-0.0.12 vs bin/rvm-install in rvm-0.0.13

- old
+ new

@@ -1,5 +1,19 @@ -#!/usr/bin/env ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +# +# This file was generated by RubyGems. +# +# The application 'rvm' is installed as part of a gem, and +# this file is here to facilitate running it. +# -# Hot potato!!! Bash it! -exec "bash -c 'cd #{File.dirname(File.dirname(__FILE__))} && ./bash/rvm-install #{ARGV.join(' ')} ; source ~/.bash_profile'" +require 'rubygems' +version = ">= 0" + +if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then + version = $1 + ARGV.shift +end + +gem 'rvm', version +load Gem.bin_path('rvm', 'rvm-install', version)