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:
parent
458dd8c97d
commit
dcc676a0c9
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue