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 {