mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Eval
This commit is contained in:
parent
09c36844e6
commit
850e6afbd0
@ -144,10 +144,16 @@ echo match ($argv[1]) {
|
|||||||
default => '',
|
default => '',
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($argv[1] === 'download_cmd' || $argv[1] === 'build_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);
|
||||||
} else {
|
} else {
|
||||||
passthru('./bin/spc ' . $down_cmd);
|
passthru('./bin/spc ' . $down_cmd);
|
||||||
}
|
}
|
||||||
}
|
} 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user