lib/tlapse/util.rb in tlapse-0.6.1 vs lib/tlapse/util.rb in tlapse-0.6.2

- old
+ new

@@ -5,10 +5,10 @@ def self.normalize!(dry_run: false) Dir["*.jpg"].each do |filename| normalized = normalize_filename(filename) if filename != normalized puts "Rename #{filename} to #{normalized}" - FileUtils.mv filename, normalize_filename unless dry_run + FileUtils.mv(filename, normalized) unless dry_run end end end def self.normalize_filename(file)