don't try to download the -d done dir, RT#29053
[freeside.git] / 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