From 48f321017c86097d7500318f748a90959f5fafba Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 10 Apr 2018 16:30:45 +0200 Subject: latest --- latest.pl | 11 ++++++----- 1 file 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; } -- cgit v1.2.3-70-g09d2