From 9c40372b619987ae11d4b3a2f7bf260e185443fd Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 30 Dec 2014 15:49:11 +0100 Subject: [PATCH] cli/setup: Do not translate \n --- .../setup/application/clicommands/ConfigCommand.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/setup/application/clicommands/ConfigCommand.php b/modules/setup/application/clicommands/ConfigCommand.php index 4421c7600..27daa8b89 100644 --- a/modules/setup/application/clicommands/ConfigCommand.php +++ b/modules/setup/application/clicommands/ConfigCommand.php @@ -41,6 +41,11 @@ class ConfigCommand extends Command )); } + if (file_exists($configDir)) { + printf($this->translate('Configuration directory already exists at: %s') . PHP_EOL, $configDir); + return true; + } + $group = trim($this->params->get('group', 'icingaweb2')); if (strlen($group) === 0) { $this->fail($this->translate( @@ -55,11 +60,6 @@ class ConfigCommand extends Command )); } - if (file_exists($configDir)) { - printf($this->translate("Configuration directory already exists at: %s\n"), $configDir); - return true; - } - $mode = octdec($mode); if (false === mkdir($configDir)) { $this->fail(sprintf($this->translate('Unable to create path: %s'), $configDir));