mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
Fix wrongly using msys2 tar.exe
This commit is contained in:
@@ -468,6 +468,9 @@ class ArtifactExtractor
|
||||
|
||||
if ($extname !== 'exe' && !is_dir($target)) {
|
||||
FileSystem::createDir($target);
|
||||
if (!is_dir($target)) {
|
||||
throw new FileSystemException("Failed to create target directory: {$target}");
|
||||
}
|
||||
}
|
||||
match (SystemTarget::getTargetOS()) {
|
||||
'Windows' => match ($extname) {
|
||||
|
||||
Reference in New Issue
Block a user