summaryrefslogtreecommitdiff
path: root/rhimport-dn
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-dn')
-rwxr-xr-xrhimport-dn5
1 files changed, 5 insertions, 0 deletions
diff --git a/rhimport-dn b/rhimport-dn
index 0468dc8..a23d32b 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -120,6 +120,11 @@ for my $entry ($files_feed->entries) {
exit 0;
}
$out_file = $path[-1];
+ if(!rhimport::check_file_extension($out_file)) {
+ print "\n\nThe extension of the matching file '". $out_file . "' seems to be wrong - manual import necessary!!!\n";
+ $dbh->disconnect();
+ exit 1;
+ }
print $1 . ": downloading " . $entry->enclosure->url . " (" . $entry->enclosure->length . " Bytes) .. ";