[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] archive: fix suffix replacement for stats
From: |
Eric Wong |
Subject: |
[PATCH] archive: fix suffix replacement for stats |
Date: |
Fri, 17 Jun 2016 02:13:00 +0000 |
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 @@
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) }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] archive: fix suffix replacement for stats,
Eric Wong <=