Skip to content

Commit

Permalink
Bug fixing selfupdate message issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jalogut committed Mar 7, 2017
1 parent ff702eb commit 7f30863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Staempfli/Symlinker/Command/Phar/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($result) {
$newVersion = $this->updater->getNewVersion();
$oldVersion = $this->updater->getOldVersion();
$output->success(sprintf('<bg=green;options=bold>Updated to version %s from %s</>', $newVersion, $oldVersion));
$output->writeln(sprintf('<bg=green;options=bold>Updated to version %s from %s</>', $newVersion, $oldVersion));
} else {
$output->writeln('<info>No update needed!</info>');
}
} catch (\Exception $e) {
$output->error('<error>There was an error while updating. Please try again later</error>');
$output->writeln('<error>There was an error while updating. Please try again later</error>');
}
}

Expand Down

0 comments on commit 7f30863

Please sign in to comment.