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