From 7e78afc6d9baf781d3d60f9ead8294d6e316830b Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 22 Mar 2012 09:21:12 -0400 Subject: [PATCH] ensure no dups --- lib/guard/flowerbox.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/guard/flowerbox.rb b/lib/guard/flowerbox.rb index ea780cc..6ed4b55 100644 --- a/lib/guard/flowerbox.rb +++ b/lib/guard/flowerbox.rb @@ -27,6 +27,8 @@ module Guard end def run_on_change(files = []) + files = files.dup.uniq + UI.info "Guard::Flowerbox running the following files: #{files.join(', ')}" if ::Flowerbox.run(@options[:dir], @options.dup.merge(:files => files)) == 0