diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-02-20 13:55:47 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-02-20 13:57:53 +0000 |
commit | be56876d20bf6328f2d4b645702bfa11d0819e49 (patch) | |
tree | 0aefb26ab2709dd177d90b4ede870e163147f7d5 | |
parent | 6d7b65adfcd1e918da8173dab25bf701074f3cdc (diff) |
Avoid uninitialized variable warning.
-rwxr-xr-x | config-model/src/main/perl/vespa-deploy | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config-model/src/main/perl/vespa-deploy b/config-model/src/main/perl/vespa-deploy index 9f8277998f2..4b14d3e4f14 100755 --- a/config-model/src/main/perl/vespa-deploy +++ b/config-model/src/main/perl/vespa-deploy @@ -142,6 +142,7 @@ create_cloudconfig_dir(); $session_id_file = "$cloudconfig_dir/$tenant/deploy-session-id"; my $command = shift; +$command ||= "help"; given($command) { @@ -213,6 +214,7 @@ sub usage { if ($command && $command eq "help") { $command = $arg; } + $command ||= "help"; given($command) { when ("upload") { usage_upload(); } |