don't try to download the -d done dir, RT#29053
authorIvan Kohler <ivan@freeside.biz>
Fri, 5 Sep 2014 05:04:16 +0000 (22:04 -0700)
committerIvan Kohler <ivan@freeside.biz>
Fri, 5 Sep 2014 05:04:16 +0000 (22:04 -0700)
bin/aradial-sftp_and_import

index b0878e2..778ee23 100755 (executable)
@@ -127,6 +127,8 @@ else {
 
 foreach my $filename ( @$ls ) {
 
+  next if $opt_d && $filename eq $opt_d;
+
   warn "Downloading $filename\n" if $opt_v;
 
   #get the file