Merge pull request #447 from slimus/2.1

2.1 fix bake shell options
This commit is contained in:
José Lorenzo Rodríguez 2012-01-28 09:12:53 -08:00
commit f28ba9002a

View file

@ -453,7 +453,8 @@ class Shell extends Object {
if (!$this->interactive) {
return $default;
}
$in = $this->_getInput($prompt, $options, $default);
$originalOptions = $options;
$in = $this->_getInput($prompt, $originalOptions, $default);
if ($options && is_string($options)) {
if (strpos($options, ',')) {
@ -471,7 +472,7 @@ class Shell extends Object {
$options
);
while ($in === '' || !in_array($in, $options)) {
$in = $this->_getInput($prompt, $options, $default);
$in = $this->_getInput($prompt, $originalOptions, $default);
}
}
return $in;