From c6b18d2f3d784127374ed22f06407cf9b1df73fa Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 29 Oct 2014 08:46:22 +0100 Subject: [PATCH] Improve feedback when creating the configuration directory using the CLI The user gets now a success message as well as not a failure message in case the directory already exists. refs #7163 --- application/clicommands/SetupCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/clicommands/SetupCommand.php b/application/clicommands/SetupCommand.php index 635ecb519..8f87699ef 100644 --- a/application/clicommands/SetupCommand.php +++ b/application/clicommands/SetupCommand.php @@ -102,8 +102,8 @@ class SetupCommand extends Command $path = $this->params->get('path', $this->app->getConfigDir()); if (file_exists($path)) { - $this->fail(sprintf($this->translate('Path "%s" already exists.'), $path)); - return false; + printf($this->translate("Configuration directory already exists at: %s\n"), $path); + return true; } $mode = octdec($this->params->get('mode', '2775')); @@ -116,6 +116,8 @@ class SetupCommand extends Command chmod($path, $mode); umask($old); chgrp($path, $group); + + printf($this->translate("Successfully created configuration directory at: %s\n"), $path); } /**