Format init.ps1
This commit is contained in:
Родитель
4d1473c292
Коммит
ebb0607dd9
11
init.ps1
11
init.ps1
|
@ -84,8 +84,7 @@ try {
|
|||
$HeaderColor = 'Green'
|
||||
|
||||
$RestoreArguments = @()
|
||||
if ($Interactive)
|
||||
{
|
||||
if ($Interactive) {
|
||||
$RestoreArguments += '--interactive'
|
||||
}
|
||||
|
||||
|
@ -98,10 +97,10 @@ try {
|
|||
}
|
||||
|
||||
if (!$NoToolRestore -and $PSCmdlet.ShouldProcess("dotnet tool", "restore")) {
|
||||
dotnet tool restore @RestoreArguments
|
||||
if ($lastexitcode -ne 0) {
|
||||
throw "Failure while restoring dotnet CLI tools."
|
||||
}
|
||||
dotnet tool restore @RestoreArguments
|
||||
if ($lastexitcode -ne 0) {
|
||||
throw "Failure while restoring dotnet CLI tools."
|
||||
}
|
||||
}
|
||||
|
||||
& "$PSScriptRoot/tools/Set-EnvVars.ps1" -Variables $EnvVars -PrependPath $PrependPath | Out-Null
|
||||
|
|
Загрузка…
Ссылка в новой задаче