summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}