Fixing 'no' option when baking projects. Replying no, will enter

iteractive mode now.  Fixes #1721
This commit is contained in:
mark_story 2011-05-22 08:56:19 -04:00
parent 2b20eb8999
commit 4d76840d44

View file

@ -163,7 +163,8 @@ class ProjectTask extends Shell {
$looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y', 'n', 'q'), 'y'); $looksGood = $this->in(__d('cake_console', 'Look okay?'), array('y', 'n', 'q'), 'y');
if (strtolower($looksGood) == 'y') { switch (strtolower($looksGood)) {
case 'y':
$Folder = new Folder($skel); $Folder = new Folder($skel);
if (!empty($this->params['empty'])) { if (!empty($this->params['empty'])) {
$skip = array(); $skip = array();
@ -183,10 +184,12 @@ class ProjectTask extends Shell {
} }
return true; return true;
} elseif (strtolower($looksGood) == 'q') { case 'n':
$this->out(__d('cake_console', 'Bake Aborted.')); unset($this->args[0]);
} else { $this->execute();
$this->execute(false); return false;
case 'q':
$this->out(__d('cake_console', '<error>Bake Aborted.</error>'));
return false; return false;
} }
} }