From 83d57c8104da3ca3a53088293314f950a41858ea Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Sat, 4 Jun 2016 16:28:18 -0400 Subject: [PATCH] Fix key type selection --- tools/hangar/src/Commands/Sign.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/hangar/src/Commands/Sign.php b/tools/hangar/src/Commands/Sign.php index 8a9988f..2b90c20 100644 --- a/tools/hangar/src/Commands/Sign.php +++ b/tools/hangar/src/Commands/Sign.php @@ -41,6 +41,7 @@ public function fire(array $args = []): bool $level = KeyFactory::INTERACTIVE; break; case 'm': + case 'signing': case 'moderate': $level = KeyFactory::MODERATE; break; @@ -49,7 +50,7 @@ public function fire(array $args = []): bool break; } } elseif (isset($this->config['keytype'])) { - switch (isset($this->config['keytype'])) { + switch ($this->config['keytype']) { case 'fast': case 'i': case 'interactive': @@ -57,6 +58,7 @@ public function fire(array $args = []): bool $level = KeyFactory::INTERACTIVE; break; case 'm': + case 'signing': case 'moderate': $level = KeyFactory::MODERATE; break;