about summary refs log tree commit homepage
path: root/bin/dtas-archive
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-17 02:10:46 +0000
committerEric Wong <e@80x24.org>2016-06-17 02:10:46 +0000
commit331e3624e17bc4cad6d4e5ca2b2864b5d91bde13 (patch)
tree4793d25edce4e0d49c643c3a4b4c255dd7e9d2dc /bin/dtas-archive
parent7f107e8ce965bd58c8da0631cb1e5cf594b24835 (diff)
downloaddtas-331e3624e17bc4cad6d4e5ca2b2864b5d91bde13.tar.gz
We should generate "XYZ_0001.stats" files,
not "XYZ_0001.flac.stats".
Diffstat (limited to 'bin/dtas-archive')
-rwxr-xr-xbin/dtas-archive2
1 files changed, 1 insertions, 1 deletions
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) }