mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Fix windows extracting with curl typo, ignore traits in package
This commit is contained in:
parent
fe0b983f6c
commit
4bbe56dd9f
@ -190,7 +190,7 @@ class ExceptionHandler
|
||||
$line = str_pad($v, strlen($v) + $indent_space, ' ', STR_PAD_LEFT);
|
||||
fwrite($spc_log, strip_ansi_colors($line) . PHP_EOL);
|
||||
if ($output_log) {
|
||||
InteractiveTerm::plain(ConsoleColor::red($line) . '');
|
||||
InteractiveTerm::plain(ConsoleColor::red($line) . '', 'error');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ class DefaultShell extends Shell
|
||||
$extname = FileSystem::extname($archive_path);
|
||||
match ($extname) {
|
||||
'tar' => $this->executeTarExtract($archive_path, $target_path, 'none'),
|
||||
'gz', 'tgz', 'xz', 'txz', 'bz2' => $run("{$_7z} x -so {$archive_arg} | tar tar -f - -x -C {$target_arg} --strip-components 1"),
|
||||
'gz', 'tgz', 'xz', 'txz', 'bz2' => $run("{$_7z} x -so {$archive_arg} | tar -f - -x -C {$target_arg} --strip-components 1"),
|
||||
default => $run("{$_7z} x {$archive_arg} -o{$target_arg} -y{$mute}"),
|
||||
};
|
||||
|
||||
|
||||
@ -267,6 +267,9 @@ class FileSystem
|
||||
if ($auto_require && !class_exists($class_name, false)) {
|
||||
require_once $file_path;
|
||||
}
|
||||
if (class_exists($class_name, false) === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_string($return_path_value)) {
|
||||
$classes[$class_name] = $return_path_value . '/' . $v;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user