summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-10 16:30:45 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-10 16:30:45 +0200
commit48f321017c86097d7500318f748a90959f5fafba (patch)
tree91b4a318aca4707f6ed00998c895c7e5e19435d4
parenta1c16f063f7d753909c75ca9cbac459af7eb8245 (diff)
latest
-rwxr-xr-xlatest.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/latest.pl b/latest.pl
index 2218d06..a29cf50 100755
--- a/latest.pl
+++ b/latest.pl
@@ -35,6 +35,12 @@ sub process($){
last;
}
closedir DIR;
+
+ if ($opt_v) {
+ print $name . "\n";
+ print `grep valid $log`;
+ }
+
if ($c == 0) {
return 0;
}
@@ -50,11 +56,6 @@ sub process($){
return 0;
}
- if ($opt_v) {
- print $name;
- print `grep valid $log`;
- }
-
if (-e "output/" . $name . ".mp3") {
return 1;
}