mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 22:42:55 +08:00
only require bundler if there is a Gemfile
This commit is contained in:
@@ -39,10 +39,12 @@ if $?.exitstatus == 2
|
||||
puts ''
|
||||
end
|
||||
|
||||
begin
|
||||
require 'bundler/setup'
|
||||
Bundler.require
|
||||
rescue LoadError
|
||||
if File.exist?('Gemfile')
|
||||
begin
|
||||
require 'bundler/setup'
|
||||
Bundler.require
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
desc "Build the project, then run the simulator"
|
||||
|
||||
Reference in New Issue
Block a user