mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Final tests
This commit is contained in:
parent
7d56822e91
commit
ecb17cc4c9
@ -146,14 +146,16 @@ echo match ($argv[1]) {
|
|||||||
|
|
||||||
if ($argv[1] === 'download_cmd') {
|
if ($argv[1] === 'download_cmd') {
|
||||||
if (str_starts_with($argv[2], 'windows-')) {
|
if (str_starts_with($argv[2], 'windows-')) {
|
||||||
passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd);
|
passthru('powershell.exe -file .\bin\spc.ps1 ' . $down_cmd, $retcode);
|
||||||
} else {
|
} else {
|
||||||
passthru('./bin/spc ' . $down_cmd);
|
passthru('./bin/spc ' . $down_cmd, $retcode);
|
||||||
}
|
}
|
||||||
} elseif ($argv[1] === 'build_cmd') {
|
} elseif ($argv[1] === 'build_cmd') {
|
||||||
if (str_starts_with($argv[2], 'windows-')) {
|
if (str_starts_with($argv[2], 'windows-')) {
|
||||||
passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd);
|
passthru('powershell.exe -file .\bin\spc.ps1 ' . $build_cmd, $retcode);
|
||||||
} else {
|
} else {
|
||||||
passthru('./bin/spc ' . $build_cmd);
|
passthru('./bin/spc ' . $build_cmd, $retcode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit($retcode);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user