Skip to content

Commit

Permalink
Don't try to set cpanm local lib option if ~/perl5/bin doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jan 22, 2018
1 parent fa0070f commit d5d74ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bashrc
Expand Up @@ -96,7 +96,7 @@ pathadd "$HOME/local/bin";

LOCALPERLBIN=~/perl5/bin

if [[ ! -d ~/.plenv ]]; then
if [[ ! -d ~/.plenv && -d $LOCALPERLBIN ]]; then
PERL_CPANM_OPT="--local-lib=~/perl5"
# adds $HOME/perl5/bin to PATH
[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"
Expand Down

0 comments on commit d5d74ac

Please sign in to comment.