1
0
Fork 0

[11744] handle missing hyphen when attempting to run self-update… (#11775)

* [11744] handle missing hyphen when attempting to run self-update command

* fix: [1744] silently fix the "self update" command
pull/11785/head
rkpiii 2024-01-04 17:02:34 +01:00 committed by GitHub
parent 8246892d48
commit d00e38a038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ EOT
return $this->rollback($output, $rollbackDir, $localFilename); return $this->rollback($output, $rollbackDir, $localFilename);
} }
if ($input->getArgument('command') === 'self' && $input->getArgument('version') === 'update') {
$input->setArgument('version', null);
}
$latest = $versionsUtil->getLatest(); $latest = $versionsUtil->getLatest();
$latestStable = $versionsUtil->getLatest('stable'); $latestStable = $versionsUtil->getLatest('stable');
try { try {