Ignore directories when checking POD encoding
authorSteve Hay <steve.m.hay@googlemail.com>
Mon, 12 Aug 2013 12:56:22 +0000 (13:56 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Mon, 12 Aug 2013 12:56:59 +0000 (13:56 +0100)
Porting/checkpodencoding.pl

index a936368..050cbe0 100755 (executable)
@@ -22,7 +22,7 @@ find(
 sub finder {
     my $file = $_;
 
-    return if -B $file;
+    return if -d $file or -B $file;
 
     open my $fh, '<', $file;