Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change $*OS to $*DISTRO.name. Fixes #88
  • Loading branch information
Mouq committed Jun 6, 2015
1 parent 73e57a9 commit 118f72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/p6doc
Expand Up @@ -47,7 +47,7 @@ sub locate-module(Str $modulename) {
}

sub show-docs(Str $path, :$section) {
my $pager = %*ENV<PAGER> // ($*OS eq 'mswin32' ?? 'more' !! 'less');
my $pager = %*ENV<PAGER> // ($*DISTRO.name eq 'mswin32' ?? 'more' !! 'less');
if not open($path).lines.grep( /^'=' | '#|' | '#='/ ) {
say "No Pod found in $path";
return;
Expand Down

1 comment on commit 118f72b

@jonathanstowe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
There is also a "$*DISTRO.is-win" which does the test for you.

Please sign in to comment.