Skip to content

Commit 0c8a072

Browse files
committed
$*EXECUTABLE_NAME instead of hard coded perl6
1 parent 42a36e3 commit 0c8a072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/p6doc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ sub show-docs(Str $path, :$section) {
5353
if $section.defined {
5454
%*ENV<PERL6_POD_HEADING> = $section;
5555
my $i = findbin() ~ '../lib';
56-
say "launching 'perl6 -I$i --doc=SectionFilter $path | $pager'" if DEBUG;
57-
shell "perl6 -I$i --doc=SectionFilter $path | $pager";
56+
say "launching '$*EXECUTABLE_NAME -I$i --doc=SectionFilter $path | $pager'" if DEBUG;
57+
shell "$*EXECUTABLE_NAME -I$i --doc=SectionFilter $path | $pager";
5858
}
5959
else {
60-
shell "perl6 --doc $path | $pager";
60+
shell "$*EXECUTABLE_NAME --doc $path | $pager";
6161
}
6262

6363
}

0 commit comments

Comments
 (0)