Fix windows extracting with curl typo, ignore traits in package

This commit is contained in:
crazywhalecc
2025-12-11 13:47:32 +08:00
parent fe0b983f6c
commit 4bbe56dd9f
3 changed files with 5 additions and 2 deletions

View File

@@ -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}"),
};