#!/usr/bin/env ruby 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' require 'bundler/friendly_errors' Bundler.with_friendly_errors { Bundler::CLI.start }