X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=organize_videos;h=05edab463cb246cba2357155bd67c6985c5ed1bc;hb=eb8eb0bd100a288298370362135991ad4710cc59;hp=ea92012c51530c08b07c53a0a76e52a630337a34;hpb=3574551ce37f9611e12420e4b39d4e68dd20c884;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 => "$$"});