From 331e3624e17bc4cad6d4e5ca2b2864b5d91bde13 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jun 2016 02:10:46 +0000 Subject: archive: fix suffix replacement for stats We should generate "XYZ_0001.stats" files, not "XYZ_0001.flac.stats". --- bin/dtas-archive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dtas-archive b/bin/dtas-archive index ded1ee7..1f22ff4 100755 --- a/bin/dtas-archive +++ b/bin/dtas-archive @@ -133,7 +133,7 @@ thrs = jobs.times.map do |i| next end - stats_out = "#{output.sub(/\.[\.]+\z/, '')}.stats" if stats + stats_out = "#{output.sub(/\.[^\.]+\z/, '')}.stats" if stats if dry_run || !silent names = job.map { |x| Shellwords.escape(x) } -- cgit v1.2.3-24-ge0c7