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;
}
// Get all constants
require_once BB_PATH . '/library/defines.php';
if (!function_exists('removeFile')) {
// Get all constants
require_once BB_PATH . '/library/defines.php';
// Include CLI functions
require INC_DIR . '/functions_cli.php';
// Include CLI functions
require INC_DIR . '/functions_cli.php';
}
$items = [
'.github',

View file

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