invoke-msys2.ps1 267 B

12345678910111213141516
  1. # Invoke the specified script using MSYS2
  2. #Requires -Version 4.0
  3. $ErrorActionPreference = "Stop"
  4. . "$PSScriptRoot\functions.ps1"
  5. $msysbash = Get-MSYS2Bash "$msysprefix"
  6. $env:CHERE_INVOKING = 'yes'
  7. & $msysbash -l $args[0]
  8. if ($LastExitcode -ne 0) {
  9. exit 1
  10. }