From 9f8c484c407191ddbd4757476a4b4c17dbc895dc Mon Sep 17 00:00:00 2001 From: Andreas Jordan Date: Thu, 14 Nov 2024 15:05:10 +0100 Subject: [PATCH] Change name of branch --- public/Install-DbaMaintenanceSolution.ps1 | 2 +- public/Save-DbaCommunitySoftware.ps1 | 2 +- public/Update-DbaMaintenanceSolution.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/Install-DbaMaintenanceSolution.ps1 b/public/Install-DbaMaintenanceSolution.ps1 index cded18dca9..0a2c1b1acc 100644 --- a/public/Install-DbaMaintenanceSolution.ps1 +++ b/public/Install-DbaMaintenanceSolution.ps1 @@ -258,7 +258,7 @@ function Install-DbaMaintenanceSolution { if (-not $localCachedCopy) { # Do we need a fresly cached version of the software? $dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData' - $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master' + $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main' if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) { if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) { try { diff --git a/public/Save-DbaCommunitySoftware.ps1 b/public/Save-DbaCommunitySoftware.ps1 index 97b22e95a8..5d8d6ba467 100644 --- a/public/Save-DbaCommunitySoftware.ps1 +++ b/public/Save-DbaCommunitySoftware.ps1 @@ -91,7 +91,7 @@ function Save-DbaCommunitySoftware { # Set Branch, Url and LocalDirectory for known Software if ($Software -eq 'MaintenanceSolution') { if (-not $Branch) { - $Branch = 'master' + $Branch = 'main' } if (-not $Url) { $Url = "https://github.com/olahallengren/sql-server-maintenance-solution/archive/$Branch.zip" diff --git a/public/Update-DbaMaintenanceSolution.ps1 b/public/Update-DbaMaintenanceSolution.ps1 index 6666994045..b30328c275 100644 --- a/public/Update-DbaMaintenanceSolution.ps1 +++ b/public/Update-DbaMaintenanceSolution.ps1 @@ -89,7 +89,7 @@ function Update-DbaMaintenanceSolution { # Do we need a new local cached version of the software? $dbatoolsData = Get-DbatoolsConfigValue -FullName 'Path.DbatoolsData' - $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-master' + $localCachedCopy = Join-DbaPath -Path $dbatoolsData -Child 'sql-server-maintenance-solution-main' if ($Force -or $LocalFile -or -not (Test-Path -Path $localCachedCopy)) { if ($PSCmdlet.ShouldProcess('MaintenanceSolution', 'Update local cached copy of the software')) { try {