From 9ca3c3ce00658e993be1516344536894c4b64329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Marki=C4=8D?= Date: Sun, 14 Mar 2021 15:12:03 +0100 Subject: [PATCH] Updates build script --- build.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.ps1 b/build.ps1 index 63a7996..0940a31 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,12 +5,11 @@ $SCRIPT_NAME = "recipe.cake" Write-Host "Restoring .NET Core tools" dotnet tool restore if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - [string[]]$ScriptArgs + Write-Host "Bootstrapping Cake" dotnet cake $SCRIPT_NAME --bootstrap if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - return $null + Write-Host "Running Build" dotnet cake $SCRIPT_NAME @args -if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs" -exit $LASTEXITCODE \ No newline at end of file +if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } \ No newline at end of file