Skip to content

Commit 30822ab

Browse files
authored
Update make.ps1
1 parent 770f827 commit 30822ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/make.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Function Build-Project {
9595
ForEach-Object {
9696
$Output = (& lazbuild --build-all --recursive --no-write-project $_)
9797
$Result = @("$([char]27)[32m.... [$($LastExitCode)] build project $($_)$([char]27)[0m")
98-
$exitCode = switch ($LastExitCode) {
98+
$exitCode = $(switch ($LastExitCode) {
9999
0 {
100100
$Result += $Output | Select-String -Pattern 'Linking'
101101
0
@@ -104,7 +104,7 @@ Function Build-Project {
104104
$Result += $Output | Select-String -Pattern 'Error:', 'Fatal:'
105105
1
106106
}
107-
}
107+
})
108108
$Result | Out-Host
109109
return $exitCode
110110
} | Measure-Object -Sum

0 commit comments

Comments
 (0)