lib/gem_suit/cli.rb in gem_suit-0.1.1 vs lib/gem_suit/cli.rb in gem_suit-0.1.2

- old
+ new

@@ -131,10 +131,10 @@ raise Error, "Current directory path does not match either a GemSuit directory or a Rails dummy app. Quitting." unless suit_dir? || rails_dir? dirs = [File.expand_path("")] dirs.concat Dir["suit/rails-*/dummy"] if suit_dir? dirs.each do |dir| - if `cd #{dir} && bundle check`.any?{|line| line.include? "`bundle install`"} + if [`cd #{dir} && bundle check`].flatten.any?{|line| line.include? "`bundle install`"} puts "Running `bundle install` (this can take several minutes...)".yellow system "cd #{dir} && bundle install" end end end \ No newline at end of file