Skip to content

Commit 4ffdc3a

Browse files
author
devizer
committed
CU1 for SQL Server 2025 [skip ci]
1 parent 4326c7e commit 4ffdc3a

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

Install-SqlServer-Version-Management.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Param(
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;",

SqlServer-Version-Management.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,7 +2142,11 @@ function Troubleshoot-Info-Prev([string] $message) {
21422142

21432143
# Black DarkBlue DarkGreen DarkCyan DarkRed DarkMagenta DarkYellow Gray DarkGray Blue Green Cyan Red Magenta Yellow White
21442144
# Include File: [\Includes\Try-And-Retry.ps1]
2145-
function Try-And-Retry([string] $title, [ScriptBlock] $action, [int] $retryCount = 3, [int] $pauseMilliseconds = 1000) {
2145+
function Try-And-Retry([string] $title, <# [ScriptBlock] #> $action, [int] $retryCount = 3, [int] $pauseMilliseconds = 1000) {
2146+
if ($action -is [string]) {
2147+
$action = [scriptblock]::Create($action)
2148+
}
2149+
21462150
for($retry=1; $retry -le $retryCount; $retry++) {
21472151
$exitCode = 0;
21482152
$err=$null;

0 commit comments

Comments
 (0)