Let cpanm automatically discover the need for --sudo or --local-lib in order to allow non-root installs.
This commit is contained in:
parent
ecf4099611
commit
a1a39d3a2e
2
Build.PL
2
Build.PL
@ -69,7 +69,7 @@ EOF
|
|||||||
my %modules = (%prereqs, %recommends);
|
my %modules = (%prereqs, %recommends);
|
||||||
foreach my $module (sort keys %modules) {
|
foreach my $module (sort keys %modules) {
|
||||||
my $version = $modules{$module};
|
my $version = $modules{$module};
|
||||||
system $cpanm, '--sudo', "$module~$version";
|
system $cpanm, "$module~$version";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eval "use App::Prove; 1") {
|
if (eval "use App::Prove; 1") {
|
||||||
|
Loading…
Reference in New Issue
Block a user