Bugfix: local::lib check was creating ~/perl5. #3635

This commit is contained in:
Alessandro Ranellucci 2016-12-22 10:52:46 +01:00
parent 117fb30636
commit 9581ddf641

View File

@ -109,7 +109,7 @@ EOF
push @cpanm_args, "--sudo" if $sudo;
# install local::lib without --local-lib otherwise it's not usable afterwards
if (!eval "use local::lib; 1") {
if (!eval "use local::lib qw(local-lib); 1") {
my $res = system $cpanm, @cpanm_args, 'local::lib';
warn "Warning: local::lib is required. You might need to run the `cpanm --sudo local::lib` command in order to install it.\n"
if $res != 0;