Skip to content

Commit

Permalink
Merge pull request #102 from hydephp/release/v0.7.24
Browse files Browse the repository at this point in the history
HydeCLI v0.7.24
  • Loading branch information
caendesilva authored Apr 19, 2024
2 parents 5748c73 + d810dcb commit 2c26359
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Application extends \Hyde\Foundation\Application
{
final public const APP_VERSION = '0.7.23';
final public const APP_VERSION = '0.7.24';

public function getCachedPackagesPath(): string
{
Expand Down
12 changes: 6 additions & 6 deletions app/Commands/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@ protected function updateViaComposer(): void

[$exitCode, $output] = $this->runComposerProcess();

if (str_contains(implode("\n", $output), 'Failed to open stream: Permission denied')) {
$this->error('The application path is not writable. Please rerun the command with elevated privileges.');
$this->info('You can also try copying the command below and running it manually:');
$this->line(self::COMPOSER_COMMAND);
}

if ($exitCode !== 0) {
$this->error('The Composer command failed with exit code '.$exitCode);

if (str_contains(implode("\n", $output), 'Failed to open stream: Permission denied')) {
$this->error('The application path is not writable. Please rerun the command with elevated privileges.');
$this->info('You can also try copying the command below and running it manually:');
$this->line(self::COMPOSER_COMMAND);
}

exit($exitCode);
}
}
Expand Down
Binary file modified builds/hyde
Binary file not shown.

0 comments on commit 2c26359

Please sign in to comment.