summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-07-20 17:26:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-07-20 17:26:52 (GMT)
commitd6efcce3431c585a4ee88a572f30c84359a0c0eb (patch)
tree608ef7bed66bce717c4bd421bdd6801d5294303b
parentf3da8ef4920ee4cd82cdde0c6791e153a2155533 (diff)
removing file after import
-rwxr-xr-xrhimport-dn4
1 files changed, 2 insertions, 2 deletions
diff --git a/rhimport-dn b/rhimport-dn
index e19f3b6..ecae29f 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -101,8 +101,6 @@ for my $entry ($feed->entries) {
(-e "$file") or die "file '$file' not found - donwload error?\n";
print "will import $file to dropbox $dropbox (cart=$to_cart)\n\n";
-exit 0;
-
my $error_cb = sub {
my ($text) = @_;
@@ -122,6 +120,8 @@ $log .= $import_log;
$dbh->disconnect();
+unlink $file
+
if(!$ret) {
exit 1;
}