diff --git a/install.php b/install.php index 36c1e5107..b6eec09e1 100644 --- a/install.php +++ b/install.php @@ -178,7 +178,7 @@ out("- All extensions are installed!\n", 'success'); if (is_file(BB_ROOT . '.env')) { out('- TorrentPier already installed', 'warning'); echo 'Are you sure want to re-install TorrentPier? [y/N]: '; - if (in_array(mb_strtolower(readline()), ['y', 'ye', 'yes', 'yep', 'yeah'])) { + if (str_starts_with(mb_strtolower(readline()), 'y')) { out("\n- Re-install process started...", 'info'); // environment if (is_file(BB_ROOT . '.env')) {