lib/rbbt/resource/util.rb in rbbt-util-5.26.57 vs lib/rbbt/resource/util.rb in rbbt-util-5.26.58

- old
+ new

@@ -12,10 +12,10 @@ return Path.setup(file) if File.exist? File.join(file, relative_to) while file != '/' dir = File.dirname file - return Path.setup(dir) if File.exist? File.join(dir, relative_to) + return dir if File.exist? File.join(dir, relative_to) file = File.dirname file end return nil