Skip to content

Commit

Permalink
update: Use cpanm if available
Browse files Browse the repository at this point in the history
CPAN is fine and works but Lordy cpanm is just nicer
  • Loading branch information
Amorymeltzer committed Jun 2, 2020
1 parent 9d44e7e commit 8dcb1ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/update
Expand Up @@ -202,12 +202,16 @@ if [[ -z $cpan_all_flag ]]; then
echo "$cpan_todo"
if [[ -z $cpan_flag ]]; then
updating 'CPAN modules'
cpan-outdated -p | xargs cpan -i
# Should probably just cut -f 1 -d ' '
if [[ -f `command -v cpanm` ]]; then
cpan-outdated -p | cpanm
else
cpan-outdated -p | xargs cpan -i
fi
cleaning 'CPAN directories'
cpanclean;
fi
else
echo -e "${Color_Green}CPAN modules already up-to-date!${Color_zOff}"
fi
fi

0 comments on commit 8dcb1ea

Please sign in to comment.