lib/advance.rb in advance-0.1.12 vs lib/advance.rb in advance-0.1.13
- old
+ new
@@ -95,10 +95,10 @@
end
def multi(label, command, previous_dir_path, dir_prefix, dir_name)
no_feedback = false
work_in_sub_dir(dir_name) do
- file_paths = Find.find(previous_dir_path).reject { |path| FileTest.directory?(path) || path =~ %r{^(log)$} }
+ file_paths = Find.find(previous_dir_path).reject { |path| FileTest.directory?(path) || File.basename(path) == "log" }
last_progress = ""
progress_proc = ->(index, max_index) do
latest_progress = sprintf("%3i%", index.to_f / max_index * 100)
puts latest_progress if last_progress != latest_progress