Skip to content

Commit

Permalink
Merge pull request #471 from jolicode/installation-intruction
Browse files Browse the repository at this point in the history
Fix update instruction
  • Loading branch information
lyrixx authored May 31, 2024
2 parents 3586792 + 27bb0ec commit feb5423
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# CHANGELOG

## Not released yet
## 0.17.1 (2024-05-31)

### Fixes

* Fix update instruction

## 0.17.0 (2024-05-27)

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class Application extends SymfonyApplication
{
public const NAME = 'castor';
public const VERSION = 'v0.17.0';
public const VERSION = 'v0.17.1';

private Command $command;

Expand Down
2 changes: 1 addition & 1 deletion src/Listener/UpdateCastorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function displayUpdateWarningIfNeeded(InputInterface $input, OutputInter

if (OsHelper::isUnix()) {
$symfonyStyle->block('Run the following command to update Castor:');
$symfonyStyle->block(sprintf('<comment>curl "https://castor.jolicode.com/install" | bash --install-dir %s</comment>', basename($pharPath)), escape: false);
$symfonyStyle->block(sprintf('<comment>curl "https://castor.jolicode.com/install" | bash -s -- --install-dir %s</comment>', \dirname($pharPath)), escape: false);
} else {
$symfonyStyle->block(sprintf('Download the latest version at <comment>%s</comment>', $latestReleaseUrl), escape: false);
}
Expand Down

0 comments on commit feb5423

Please sign in to comment.