Commit bc3923f1 authored by Gavin Brown's avatar Gavin Brown

don't run if no files

parent 4d5467ae
......@@ -37,6 +37,11 @@ if (!opendir(DIR, $config->{'dsd.directory'})) {
}
if (scalar(@files) < 1) {
syslog(LOG_DEBUG, "nothing to do");
exit(0);
}
syslog(LOG_DEBUG, sprintf("%d files", scalar(@files)));
$SIG{'PIPE'} = sub {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment