Update to VS Code 1.52.1
This commit is contained in:
19
lib/vscode/build/azure-pipelines/win32/retry.ps1
Normal file
19
lib/vscode/build/azure-pipelines/win32/retry.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
function Retry
|
||||
{
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[Parameter(Position=0,Mandatory=1)][scriptblock]$cmd
|
||||
)
|
||||
$retry = 0
|
||||
|
||||
while ($retry++ -lt 3) {
|
||||
try {
|
||||
& $cmd
|
||||
return
|
||||
} catch {
|
||||
# noop
|
||||
}
|
||||
}
|
||||
|
||||
throw "Max retries reached"
|
||||
}
|
||||
Reference in New Issue
Block a user