summaryrefslogtreecommitdiffstats
path: root/packaging/windows/invoke-msys2.ps1
blob: bffa7f90b7cfbdc701e4572c4961e5a07061b6a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Invoke the specified script using MSYS2

#Requires -Version 4.0

$ErrorActionPreference = "Stop"

. "$PSScriptRoot\functions.ps1"

$msysbash = Get-MSYS2Bash "$msysprefix"
$env:CHERE_INVOKING = 'yes'

& $msysbash -l $args[0]

if ($LastExitcode -ne 0) {
    exit 1
}