From: Peter Powell Date: Wed, 10 Apr 2013 05:06:53 +0000 (+0100) Subject: Fix ModuleManager error caused by a lack of arguments. X-Git-Tag: v2.0.23~331^2 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=ac8a394a5c01d8cecd6d1fd364173825ecb452ae;p=user%2Fhenk%2Fcode%2Finspircd.git Fix ModuleManager error caused by a lack of arguments. --- diff --git a/modulemanager b/modulemanager index d1212faf5..7884654af 100755 --- a/modulemanager +++ b/modulemanager @@ -262,7 +262,7 @@ sub resolve_deps { } } -my $action = lc shift @ARGV; +my $action = $#ARGV > 0 ? lc shift @ARGV : 'help'; if ($action eq 'install') { for my $mod (@ARGV) {