This commit is contained in:
Roman Kelesidis 2025-06-09 14:07:40 +03:00
commit e8076f421e
2 changed files with 7 additions and 5 deletions

View file

@ -16,11 +16,13 @@ if (php_sapi_name() !== 'cli') {
exit; exit;
} }
// Get all constants if (!function_exists('removeFile')) {
require_once BB_PATH . '/library/defines.php'; // Get all constants
require_once BB_PATH . '/library/defines.php';
// Include CLI functions // Include CLI functions
require INC_DIR . '/functions_cli.php'; require INC_DIR . '/functions_cli.php';
}
$items = [ $items = [
'.github', '.github',

View file

@ -94,7 +94,7 @@ if (is_file(BB_ROOT . '.env')) {
} }
// composer dir // composer dir
if (is_dir(BB_ROOT . 'vendor')) { if (is_dir(BB_ROOT . 'vendor')) {
removeDir(BB_ROOT . 'vendor'); removeDir(BB_ROOT . 'vendor', true);
if (!is_dir(BB_ROOT . 'vendor')) { if (!is_dir(BB_ROOT . 'vendor')) {
out("- Composer directory successfully removed!"); out("- Composer directory successfully removed!");
} else { } else {