mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Updated
This commit is contained in:
parent
f9f761277c
commit
e8076f421e
2 changed files with 7 additions and 5 deletions
10
_cleanup.php
10
_cleanup.php
|
@ -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',
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue