Skip to content

Commit 0bfe797

Browse files
committed
only display index file if it exists
1 parent a9fb33d commit 0bfe797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/p6doc-index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ multi sub MAIN() {
2121
}
2222

2323
multi sub MAIN('path-to-index') {
24-
say INDEX;
24+
say INDEX if INDEX.IO.e;
2525
}
2626

2727
multi sub MAIN('build') {

0 commit comments

Comments
 (0)