Permalink
Browse files

Pass install_modules options through to cpanm.

  • Loading branch information...
1 parent 3126fab commit f194f4e406ba3f86390df458486d3d0ac17755b4 @pjcj committed Jun 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 utils/install_modules
View
@@ -264,11 +264,13 @@ my $modules = <<EOM;
EOM
+my @opts = @ARGV;
+
my @modules = grep /\S/, grep !/^ +#/, split /\n/, $modules;
s/^ +//, s/ +$// for @modules;
my %m; @modules = grep !$m{$_}++, @modules;
for my $mod (sort @modules)
{
- system "cpanm $mod";
+ system "cpanm @opts $mod";
}

0 comments on commit f194f4e

Please sign in to comment.