diff options
Diffstat (limited to 'rhautoimport-rs')
-rwxr-xr-x | rhautoimport-rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rhautoimport-rs b/rhautoimport-rs index a409e19..0dedf26 100755 --- a/rhautoimport-rs +++ b/rhautoimport-rs @@ -102,7 +102,7 @@ print "day of latest original broadcast before next Radio Helsinki broadcast: " if(Date::Calc::Delta_Days(@broadcast_date, @today) <= 0) { print "File won't be available by now!\n"; - exit 0; + exit 42; } my $id = sprintf("%04d-%02d-%02d", @import_date); @@ -146,7 +146,7 @@ for my $entry ($feed->entries) { my ($current_id, $current_file) = $current_stat =~ m/^(.*)\n(.*)/; if($current_id eq $id && $current_file eq $file) { print "Already downloaded file of today\n"; - exit 0; + exit 42; } if(!rhautoimport::check_file_extension($file)) { print "\n\nThe extension of the matching file '". $file . "' seems to be wrong - manual import necessary!!!\n"; |