File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
lib/App/Cpan6/Commands/Bootstrap Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ multi sub MAIN(
34
34
my $ destination = " $ dir /man" ~ $ page . split (" ." )[* - 1 ] ~ " /$ page .gz" ;
35
35
36
36
die " Invalid source $ page" unless $ source ;
37
- die " a2x is not installed" unless which(" a2x" );
37
+ die " 'a2x' is not available on this system" unless which(" a2x" );
38
+ die " 'gzip' is not available on this system" unless which(" gzip" );
38
39
39
40
chdir $ source . IO . parent . path ;
40
41
Original file line number Diff line number Diff line change @@ -8,10 +8,20 @@ use App::Cpan6::Commands::New;
8
8
use App::Cpan6::Config;
9
9
use Test ;
10
10
11
- plan 2 ;
11
+ if (! which(" a2x" )) {
12
+ note " 'a2x' is not available" ;
13
+ done-testing ;
14
+ }
15
+
16
+ if (! which(" gzip" )) {
17
+ note " 'gzip' is not available" ;
18
+ done-testing ;
19
+ }
12
20
13
21
multi sub MAIN { 0 }
14
22
23
+ plan 2 ;
24
+
15
25
my $ root = tempdir;
16
26
17
27
chdir $ root ;
You can’t perform that action at this time.
0 commit comments