fix dots
[spider.git] / cmd / save.pl
index 9d49244564954f5bbc89d199c3f25fe381fbd2ff..9bb74dddc914ce585c2826483e63e0cec4621545 100644 (file)
@@ -24,10 +24,12 @@ if ($line =~ /-a/) {                        # append to the file
        $app_req = '>>';
 }
 
+$DB::single = 1;
+
 my ($fn, $rest) = split /\s+/, $line, 2;
 $fn = "$main::root/packclus/$fn" unless $fn =~ m|^/|;
-$fn =~ s/..//g;
-$fn =~ m|/+|/|g;
+$fn =~ s/\.\.//g;
+$fn =~ s|/+|/|g;
 $fn .= '_' . cldate if $date_req;
 $fn .= '_' . ztime if $time_req;
 $fn =~ s/\s+//g;