diff --git a/lib/motion/project.rb b/lib/motion/project.rb index 2082da2a..4ba03773 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -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"