diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-04-10 12:28:22 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-04-10 12:28:22 -0700 |
commit | c66ce555ba09e930eb94388b9f874ce617055835 (patch) | |
tree | 90de74031f9ee94c0aad006d1e05b66ffda2db5d | |
parent | 65072d44f23804d85dd800c5ce6aa3548831142e (diff) | |
parent | ac8a394a5c01d8cecd6d1fd364173825ecb452ae (diff) |
Merge pull request #484 from SaberUK/insp20+fix-modulemanager
Fix ModuleManager error caused by a lack of arguments.
-rwxr-xr-x | modulemanager | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |