summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/perl
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2018-02-20 15:02:06 +0100
committerGitHub <noreply@github.com>2018-02-20 15:02:06 +0100
commitcbb64cd65388971b3c8d27bd7fbfe8ea34451cb9 (patch)
tree0f91a1226221e1232fbbc1c68c901880b3d2e425 /config-model/src/main/perl
parent2be3d3348b515a54240ee7b8860e86a1281f4ecb (diff)
parentbe56876d20bf6328f2d4b645702bfa11d0819e49 (diff)
Merge pull request #5085 from vespa-engine/toregge/avoid-uninitialized-variable-warnings
Avoid uninitialized variable warning.
Diffstat (limited to 'config-model/src/main/perl')
-rwxr-xr-xconfig-model/src/main/perl/vespa-deploy2
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 aea97bebb96..cb198c170a5 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";
if ($command eq "upload") {
@@ -208,6 +209,7 @@ sub usage {
if ($command && $command eq "help") {
$command = $arg;
}
+ $command ||= "help";
if ($command eq "upload") {
usage_upload();