Skip to content

Commit

Permalink
Use unstable as default stability for now
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum committed Mar 30, 2016
1 parent fa2cf22 commit 860528a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Command/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,18 @@ protected function execute(InputInterface $input, OutputInterface $output)
$strategy->setCurrentLocalVersion($this->getApplication()->getVersion());

$stability = $input->getOption('stability');
if (!empty($stability)) {
$strategy->setStability($stability);
if (empty($stability)) {
// Unstable by default. Should be removed once we have a 2.0.0 final
$stability = GithubStrategy::UNSTABLE;
}
$strategy->setStability($stability);

if ($input->getOption('check')) {
$result = $updater->hasUpdate();
if ($result) {
$output->writeln(sprintf(
'The %s build available remotely is: %s',
$strategy->getStability() === 'any' ? 'latest' : 'current ' . $strategy->getStability(),
$strategy->getStability() === GithubStrategy::ANY ? 'latest' : 'current ' . $strategy->getStability(),
$updater->getNewVersion()
));
} elseif (false === $updater->getNewVersion()) {
Expand Down

0 comments on commit 860528a

Please sign in to comment.