-
-
Save bordy/167396 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env ruby | |
v = RUBY_VERSION.match(/^1\.9/) ? "18" : "19" | |
%w{ruby irb gem erb ri rdoc}.each do |c| | |
system "sudo ln -fs /usr/local/bin/#{c+v} /usr/local/bin/#{c}" | |
end | |
system "ruby --version" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment