whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: use relative path
Date Mon, 16 May 2016 00:03:57 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  8f1dfa7   use relative path
8f1dfa7 is described below

commit 8f1dfa7553eb62ed9e41c96d70410ce8392c2ce9
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun May 15 20:03:40 2016 -0400

    use relative path
---
 tools/toucher.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/toucher.rb b/tools/toucher.rb
index 840af45..6e5a957 100755
--- a/tools/toucher.rb
+++ b/tools/toucher.rb
@@ -9,7 +9,7 @@ require 'fileutils'
 
 watch = Hash.new {|hash, key| hash[key] = []}
 
-Dir["#{File.real_path('/srv/whimsy')}/**/restart.txt"].each do |restart|
+Dir["#{File.expand_path('../..', __FILE__)}/**/restart.txt"].each do |restart|
   app = File.expand_path('../..', restart)
   next unless File.exist? "#{app}/config.ru"
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message