From 95e6fbd57a27010854b03a38bd39337187321c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 31 May 2024 10:34:53 +0200 Subject: [PATCH 1/2] Fix update instruction --- CHANGELOG.md | 4 ++++ src/Listener/UpdateCastorListener.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 167db939..5c8b8d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Not released yet +### Fixes + +* Fix update instruction + ## 0.17.0 (2024-05-27) ### Features diff --git a/src/Listener/UpdateCastorListener.php b/src/Listener/UpdateCastorListener.php index 6b9987ac..c12ad4e9 100644 --- a/src/Listener/UpdateCastorListener.php +++ b/src/Listener/UpdateCastorListener.php @@ -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('curl "https://castor.jolicode.com/install" | bash --install-dir %s', basename($pharPath)), escape: false); + $symfonyStyle->block(sprintf('curl "https://castor.jolicode.com/install" | bash -s -- --install-dir %s', \dirname($pharPath)), escape: false); } else { $symfonyStyle->block(sprintf('Download the latest version at %s', $latestReleaseUrl), escape: false); } From 27bb0ec278ecec4e36c6855c849a8f1c3ca8d267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 31 May 2024 10:39:58 +0200 Subject: [PATCH 2/2] Prepare v0.17.1 release --- CHANGELOG.md | 2 +- src/Console/Application.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c8b8d9c..83f47222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## Not released yet +## 0.17.1 (2024-05-31) ### Fixes diff --git a/src/Console/Application.php b/src/Console/Application.php index fea610ac..8a1b748d 100644 --- a/src/Console/Application.php +++ b/src/Console/Application.php @@ -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;