44)
55
66$ModuleName = ' SqlServer-Version-Management' ;
7- $ModuleVersion = ' 2.1.182 ' ;
7+ $ModuleVersion = ' 2.1.183 ' ;
88$ModuleFiles = @ (
99 @ {
1010 FileName = ' SqlServer-Version-Management\SqlServer-Version-Management.psd1' ;
@@ -15,7 +15,7 @@ $ModuleFiles = @(
1515 " ModuleToProcess = @('SqlServer-Version-Management.psm1')" ,
1616 " " ,
1717 " # Version below is automatically incremented on build" ,
18- " ModuleVersion = `" 2.1.182 `" " ,
18+ " ModuleVersion = `" 2.1.183 `" " ,
1919 " " ,
2020 " GUID = 'dd03b53d-575a-4056-ae08-e6dfea3384ea'" ,
2121 " " ,
@@ -2275,7 +2275,11 @@ $ModuleFiles = @(
22752275 " " ,
22762276 " # Black DarkBlue DarkGreen DarkCyan DarkRed DarkMagenta DarkYellow Gray DarkGray Blue Green Cyan Red Magenta Yellow White" ,
22772277 " # Include File: [\Includes\Try-And-Retry.ps1]" ,
2278- " function Try-And-Retry([string] `$ title, [ScriptBlock] `$ action, [int] `$ retryCount = 3, [int] `$ pauseMilliseconds = 1000) {" ,
2278+ " function Try-And-Retry([string] `$ title, <# [ScriptBlock] #> `$ action, [int] `$ retryCount = 3, [int] `$ pauseMilliseconds = 1000) {" ,
2279+ " if (`$ action -is [string]) {" ,
2280+ " `$ action = [scriptblock]::Create(`$ action)" ,
2281+ " }" ,
2282+ " " ,
22792283 " for(`$ retry=1; `$ retry -le `$ retryCount; `$ retry++) {" ,
22802284 " `$ exitCode = 0;" ,
22812285 " `$ err=`$ null;" ,
0 commit comments