summaryrefslogtreecommitdiff
path: root/modulemanager
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-07-12 12:04:42 +0100
committerPeter Powell <petpow@saberuk.com>2017-07-12 12:04:42 +0100
commit61e299c2c90baf0f1f5da992fd7e9dd96cf56472 (patch)
tree9712aa4f76c4eb4a22a9b0152e021ab2b29aa3f0 /modulemanager
parent3cf2dd8247aea43221bfef98b8afcc3845ead4f9 (diff)
Fix some minor bugs in the Module Manager.
- Fix installation of module. - Exit after listing modules.
Diffstat (limited to 'modulemanager')
-rwxr-xr-xmodulemanager3
1 files changed, 2 insertions, 1 deletions
diff --git a/modulemanager b/modulemanager
index d44ccbeb9..7471dcc77 100755
--- a/modulemanager
+++ b/modulemanager
@@ -254,7 +254,7 @@ sub resolve_deps {
}
command 'install', 'Install a third-party module', sub {
- for my $mod (@ARGV) {
+ for my $mod (@_) {
my $vers = $mod =~ s/=([-0-9.]+)// ? $1 : undef;
$mod = lc $mod;
unless ($modules{$mod}) {
@@ -296,6 +296,7 @@ command 'list', 'List available third-party modules', sub {
my $vers = join ' ', map { $_ eq $instver ? "\e[1m$_\e[m" : $_ } @vers;
print "$mod ($vers) - $desc\n";
}
+ exit 0;
};
execute_command @ARGV;