Commit caa9ee29 authored by Fabio Pelosin's avatar Fabio Pelosin

[Bin] Prefer $PROGRAM_NAME to $0

parent a69fce45
...@@ -5,7 +5,7 @@ if RUBY_VERSION > '1.8.7' && Encoding.default_external != Encoding::UTF_8 ...@@ -5,7 +5,7 @@ if RUBY_VERSION > '1.8.7' && Encoding.default_external != Encoding::UTF_8
puts "See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 for details on how to fix this\e[0m" puts "See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 for details on how to fix this\e[0m"
end end
if $0 == __FILE__ && !ENV['COCOAPODS_NO_BUNDLER'] if $PROGRAM_NAME == __FILE__ && !ENV['COCOAPODS_NO_BUNDLER']
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__) ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
require "rubygems" require "rubygems"
require "bundler/setup" require "bundler/setup"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment