Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed Dec 5, 2014
1 parent 9774b2c commit 21988fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Changes
@@ -1,8 +1,7 @@
Revision history for Dist-Zilla-Plugin-ReadmeFromPod

{{$NEXT}}

0.22_02 2014-12-04 21:42:36
- fix issues

0.22_01 2014-12-04 09:52:02
- use Pod::Readme (Robert Rothenberg)
Expand Down
5 changes: 3 additions & 2 deletions lib/Dist/Zilla/Plugin/ReadmeFromPod.pm
Expand Up @@ -83,8 +83,9 @@ sub setup_installer {
'pod' => 'pod'
);
foreach my $e (keys %ext) {
$readme_file = $self->zilla->root->file("README.$e");
if (-e "$readme_file") {
my $test_readme_file = $self->zilla->root->file("README.$e");
if (-e "$test_readme_file") {
$readme_file = $test_readme_file;
$pod_class = $FORMATS{ $ext{$e} }->{class};
last;
}
Expand Down

0 comments on commit 21988fd

Please sign in to comment.