From 1223a0dcc5f71ca4fb51b7bd44cf83f255a85fc4 Mon Sep 17 00:00:00 2001 From: Denis Defreyne Date: Mon, 13 Jun 2011 16:43:26 +0200 Subject: [PATCH] removed non-existing files from files to watch --- lib/nanoc3/cli/commands/watch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nanoc3/cli/commands/watch.rb b/lib/nanoc3/cli/commands/watch.rb index d8fc558196..06f0f52512 100644 --- a/lib/nanoc3/cli/commands/watch.rb +++ b/lib/nanoc3/cli/commands/watch.rb @@ -90,6 +90,7 @@ def run(options, arguments) watcher_config = @base.site.config[:watcher] || {} dirs_to_watch = watcher_config[:dirs_to_watch] || %w( content layouts lib ) files_to_watch = watcher_config[:files_to_watch] || %w( config.yaml Rules rules Rules.rb rules.rb' ) + files_to_watch.delete_if { |f| !File.file?(f) } # Watch puts "Watching for changes…".make_compatible_with_env