mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-20 00:02:28 +02:00
PS1 lint
This commit is contained in:
parent
4be213f20c
commit
f297031066
@ -90,9 +90,9 @@ $props = Get-Content -Path $propsfile
|
||||
$props = $props -replace '<GDKEditionNumber>.+</GDKEditionNumber>', ("<GDKEditionNumber>{0}</GDKEditionNumber>" -f $GDKEditionNumber)
|
||||
Set-Content -Path $propsfile -Value $props
|
||||
|
||||
$args = "restore RestoreGDK.proj -PackageSaveMode nuspec -packagesDirectory `"{0}`"" -f $OutputDirectory.TrimEnd('\')
|
||||
Write-Host "##[command]nuget $args"
|
||||
$nugetrun = Start-Process -PassThru -Wait -FilePath $nuget.Path -WorkingDirectory $PSScriptRoot -ArgumentList $args -NoNewWindow
|
||||
$nugetArgs = "restore RestoreGDK.proj -PackageSaveMode nuspec -packagesDirectory `"{0}`"" -f $OutputDirectory.TrimEnd('\')
|
||||
Write-Host "##[command]nuget $nugetArgs"
|
||||
$nugetrun = Start-Process -PassThru -Wait -FilePath $nuget.Path -WorkingDirectory $PSScriptRoot -ArgumentList $nugetArgs -NoNewWindow
|
||||
if ($nugetrun.ExitCode -gt 0) {
|
||||
Write-Error "##[error]nuget restore failed" -ErrorAction Stop
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user