cli/setup: Do not translate \n
This commit is contained in:
parent
672500029c
commit
9c40372b61
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue