X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=organize_videos;h=05edab463cb246cba2357155bd67c6985c5ed1bc;hb=971083dc536b33ef5adaea547a2dc26c6cd6d903;hp=ea92012c51530c08b07c53a0a76e52a630337a34;hpb=5084e6bde7b0e10b98c08badc2759bff76c74f26;p=videoscripts%2F.git diff --git a/organize_videos b/organize_videos index ea92012..05edab4 100755 --- a/organize_videos +++ b/organize_videos @@ -128,9 +128,10 @@ $video_files_found=`$find_cmd_with_mkv`; if(!$video_files_found) { exit 0; } # Only proceed if no files have changed in the past $cmin minutes -if($opt_f) { $find_changed_cmd =~ s/cmin \S+ /cmin +0 /; } -$changed_files_found=`$find_changed_cmd`; -if($changed_files_found) { exit 0; } +if(! $opt_f) { + $changed_files_found=`$find_changed_cmd`; + if($changed_files_found) { exit 0; } +} # Only one instance of this script running at a time my $pidfile = File::Pid->new({file => "$pid_file", pid => "$$"});