lib/guard/rails/runner.rb in guard-rails-0.5.0 vs lib/guard/rails/runner.rb in guard-rails-0.5.1
- old
+ new
@@ -36,10 +36,11 @@
def build_command
command = build_cli_command if options[:CLI]
command ||= build_zeus_command if options[:zeus]
command ||= build_rails_command
- "sh -c 'cd \"#{@root}\" && #{command} &'"
+ # zeus will check if it runs inside bundler, remove the flag here
+ "env -u RUBYOPT sh -c 'cd \"#{@root}\" && #{command} &'"
end
def environment
rails_env = if options[:zeus]
nil