This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 0ae8db6 don't die if a directory doesn't exist
0ae8db6 is described below
commit 0ae8db6ec81c917b18f13f0f36532804695d5053
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Sep 6 14:29:03 2017 -0400
don't die if a directory doesn't exist
---
tools/toucher.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/toucher.rb b/tools/toucher.rb
index 67311b2..aa2a7ac 100755
--- a/tools/toucher.rb
+++ b/tools/toucher.rb
@@ -22,7 +22,8 @@ Dir["#{File.expand_path('../..',
__FILE__)}/**/restart.txt"].each do |restart|
end
end
-listener = Listen.to(*watch.keys) do |modified, added, removed|
+watched = watch.keys.select {|dir| Dir.exist? dir}
+listener = Listen.to(*watched) do |modified, added, removed|
touches = []
(modified + added + removed).each do |file|
watch.each do |path, restarts|
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].