cli/setup: Do not translate \n

This commit is contained in:
Eric Lippmann 2014-12-30 15:49:11 +01:00
parent 672500029c
commit 9c40372b61
1 changed files with 5 additions and 5 deletions

View File

@ -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));