From 964c81e09bf30c3d30fc908a2c8c5e8af2847807 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Fri, 4 Oct 2024 16:06:46 +0800 Subject: [PATCH] Eval --- src/globals/test-extensions.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 4e54a328..db44860c 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -144,10 +144,16 @@ echo match ($argv[1]) { default => '', }; -if ($argv[1] === 'download_cmd' || $argv[1] === 'build_cmd') { +if ($argv[1] === 'download_cmd') { if (str_starts_with($argv[2], 'windows-')) { passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd); } else { passthru('./bin/spc ' . $down_cmd); } -} \ No newline at end of file +} elseif ($argv[1] === 'build_cmd') { + if (str_starts_with($argv[2], 'windows-')) { + passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd); + } else { + passthru('./bin/spc ' . $build_cmd); + } +}