Skip to content

Commit

Permalink
Merge pull request #707 from RichMorin/patch-1
Browse files Browse the repository at this point in the history
Update help/tools
  • Loading branch information
mpapis committed Jan 16, 2012
2 parents 72f40a6 + b94a474 commit a8963de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions help/tools
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ Your scripts can then request the proper Ruby, using shebang:
#!/usr/bin/ruby-rvm-env 1.9.3

The script will be run using Ruby 1.9.3 from rvm.

Alternatively, here's a hack to make a script switch itself:

if !ENV['ruby_switch_flag']
ENV['ruby_switch_flag'] = '42'
system('rvm', '1.9.3', 'do', __FILE__, *ARGV)
exit 0
end

0 comments on commit a8963de

Please sign in to comment.