Skip to content

Commit 86f39e3

Browse files
committed
Powershell exit does not take a /b argument
1 parent d784748 commit 86f39e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
run: |
1616
if (!(Test-Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat")) {
1717
Write-Host ERROR: Could not locate 'vcvars' batch file. This script is intended to be run from a build machine
18-
exit /B 1
18+
exit 1
1919
}
2020
2121
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
2222
2323
& .\find_clang_format.cmd
2424
if ($LASTEXITCODE -ne 0) {
25-
exit /b $LASTEXITCODE
25+
exit $LASTEXITCODE
2626
}
2727
2828
& git clang-format origin/master --binary "$env:CLANG_FORMAT" --style file -- cppwinrt/*.h cppwinrt/*.cpp fast_fwd/*.h fast_fwd/*.cpp prebuild/*.h prebuild/*.cpp scratch/*.h scratch/*.cpp strings/*.h strings/*.cpp test/*.h test/*.cpp vsix/*.h vsix/*.cpp
@@ -40,7 +40,7 @@ jobs:
4040
Write-Host NOTE: As an additional note, given that different versions of `'clang-format`' may have different behaviors, this
4141
Write-Host may be a false positive. If you believe that to be the case ^`(e.g. none of the above resulted in modifications
4242
Write-Host to the code you have changed^`), please note this in your PR.
43-
exit /b 1
43+
exit 1
4444
}
4545
4646
test-msvc-cppwinrt-build:

0 commit comments

Comments
 (0)