diff options
author | Andre Arko <andre@arko.net> | 2011-09-18 18:57:51 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-09-18 18:57:51 -0700 |
commit | ef4c631bbd4ee849b3021220de060f6c2cd1d972 (patch) | |
tree | ee9f374b72e36a9597e0e575853abce3132ae0c3 /bin | |
parent | 8497f4b0cbd00c31f63cd5f90e0a91c6d3fd291b (diff) | |
parent | 3920fef3fbcefad7b74f310c470468f6195d3eb0 (diff) | |
download | bundler-ef4c631bbd4ee849b3021220de060f6c2cd1d972.tar.gz |
Merge v1.0.20.rc from branch '1-0-stable'
Conflicts:
CHANGELOG.md
lib/bundler/cli.rb
lib/bundler/installer.rb
lib/bundler/version.rb
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bundle | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/bundle b/bin/bundle index f545fa6da9..3dd87a1770 100755 --- a/bin/bundle +++ b/bin/bundle @@ -1,15 +1,15 @@ #!/usr/bin/env ruby - -# Check if an older version of bundler is installed -require 'bundler' -$:.each do |path| - if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9 - abort "Please remove older versions of bundler. This can be done by running `gem cleanup bundler`." - end -end -require 'bundler/cli' - begin + require 'bundler' + # Check if an older version of bundler is installed + $:.each do |path| + if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9 + err = "Please remove Bundler 0.8 versions." + err << "This can be done by running `gem cleanup bundler`." + abort(err) + end + end + require 'bundler/cli' Bundler::CLI.start rescue Bundler::BundlerError => e Bundler.ui.error e.message |