Skip to content

Commit

Permalink
Merge pull request pyrus#90 from fpoirotte/85_auto_discover_not_working
Browse files Browse the repository at this point in the history
Fix install for unknown channel with auto_discover.
  • Loading branch information
saltybeagle committed Feb 11, 2012
2 parents 1b9cea1 + 3058241 commit 32ff0b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pyrus/ScriptFrontend/Commands.php
Expand Up @@ -613,7 +613,8 @@ function install($args, $options)

protected function installUnknownChannelExceptionHandler($args, $options, \Exception $e, $channel)
{
if ('yes' === $this->ask('Do you want to add this channel and continue?', array('yes', 'no'), 'yes')) {
if (\Pyrus\Config::current()->auto_discover
|| 'yes' === $this->ask('Do you want to add this channel and continue?', array('yes', 'no'), 'yes')) {
$this->channelDiscover(array('channel' => $channel));
$this->install($args, $options);
return;
Expand Down

0 comments on commit 32ff0b8

Please sign in to comment.