spc.ps1 419 B

123456789101112
  1. $PHP_Exec = ".\runtime\php.exe"
  2. if (-not(Test-Path $PHP_Exec)) {
  3. $PHP_Exec = Get-Command php.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Definition
  4. if (-not $PHP_Exec) {
  5. Write-Host "Error: PHP not found, you need to install PHP on your system or use 'bin/setup-runtime'." -ForegroundColor Red
  6. exit 1
  7. }
  8. }
  9. & "$PHP_Exec" ("bin/spc") @args
  10. exit $LASTEXITCODE