ensure no dups

This commit is contained in:
John Bintz 2012-03-22 09:21:12 -04:00
parent 10a1458181
commit 7e78afc6d9

View File

@ -27,6 +27,8 @@ module Guard
end end
def run_on_change(files = []) def run_on_change(files = [])
files = files.dup.uniq
UI.info "Guard::Flowerbox running the following files: #{files.join(', ')}" UI.info "Guard::Flowerbox running the following files: #{files.join(', ')}"
if ::Flowerbox.run(@options[:dir], @options.dup.merge(:files => files)) == 0 if ::Flowerbox.run(@options[:dir], @options.dup.merge(:files => files)) == 0