mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Update src/StaticPHP/Artifact/Artifact.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -171,7 +171,7 @@ class Artifact
|
|||||||
$target_path = $extract_config['path'];
|
$target_path = $extract_config['path'];
|
||||||
|
|
||||||
// Check if target is a file or directory
|
// Check if target is a file or directory
|
||||||
$is_file_target = !is_dir($target_path) && str_contains($target_path, '.');
|
$is_file_target = !is_dir($target_path) && (pathinfo($target_path, PATHINFO_EXTENSION) !== '');
|
||||||
|
|
||||||
if ($is_file_target) {
|
if ($is_file_target) {
|
||||||
// For single file extraction (e.g., vswhere.exe)
|
// For single file extraction (e.g., vswhere.exe)
|
||||||
|
|||||||
Reference in New Issue
Block a user