From d0bd9780ec2e9c8d7f0f0672198575fbf997d7fd Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Mon, 5 Oct 2020 17:04:41 +0100 Subject: [PATCH] Actually call RunUAT --- ue4-package.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ue4-package.ps1 b/ue4-package.ps1 index 7b6abfa..2241086 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -218,9 +218,11 @@ try { Write-Output "Would have run:" Write-Output "> $runUAT $($argList -join " ")" - - - } else { + } else { + $proc = Start-Process $runUAT $argList -Wait -PassThru -NoNewWindow + if ($proc.ExitCode -ne 0) { + throw "RunUAT failed!" + } } }