13 строки
463 B
PowerShell
13 строки
463 B
PowerShell
[CmdletBinding(PositionalBinding=$False)]
|
|
Param(
|
|
[Parameter(Mandatory=$True)]
|
|
[String]$DiffFile
|
|
)
|
|
|
|
& git diff --output $DiffFile -- ':!vcpkg-artifacts/.npmrc'
|
|
if (0 -ne (Get-Item -LiteralPath $DiffFile).Length)
|
|
{
|
|
Write-Error 'The formatting of the files in the repo were not what we expected, or you forgot to regenerate messages files. Please access the diff from format.diff in the build artifacts, and apply the patch with `git apply`'
|
|
throw
|
|
}
|