summaryrefslogtreecommitdiff
path: root/vidir
diff options
context:
space:
mode:
Diffstat (limited to 'vidir')
-rwxr-xr-xvidir2
1 files changed, 1 insertions, 1 deletions
diff --git a/vidir b/vidir
index f67f74d..d482746 100755
--- a/vidir
+++ b/vidir
@@ -96,7 +96,7 @@ open (OUT, ">".$tmp->filename) || die "$0: cannot write ".$tmp->filename.": $!\n
my %item;
my $c=0;
foreach (@dir) {
- next if /(.*\/)?\.$/ || /(.*\/)?\.\.$/;
+ next if /^(.*\/)?\.$/ || /^(.*\/)?\.\.$/;
$item{++$c}=$_;
print OUT "$c\t$_\n";
}