1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Make install confirmation case insensitive

When a previous installation is found during installation/upgrade, the
user is prompted to confirm whether they want to overwrite it. We
originally only accepted 'Y', but this PR changes it to accept 'y' as
well to reduce friction.
This commit is contained in:
Steven Nguyen 2023-08-31 12:21:44 -07:00
parent 458dd8c97d
commit dcc676a0c9
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
# Version 1.4.2
## Fixes
## Changes
- Make installation confirmation case insensitive [#6097](https://github.com/appwrite/appwrite/pull/6097)
# Version 1.4.1
## Features

View file

@ -70,7 +70,7 @@ class Install extends Action
if ($interactive == 'Y' && Console::isInteractive()) {
$answer = Console::confirm('Previous installation found, do you want to overwrite it (a backup will be created before overwriting)? (Y/n)');
if ($answer !== 'Y') {
if (\strtolower($answer) !== 'y') {
Console::info('No action taken.');
return;
}