Skip to content

Commit

Permalink
Fix for installation of SQL Server Maintenance Solution by Ola Hallen…
Browse files Browse the repository at this point in the history
…gren: Changed name of branch from master to main (#9549)
  • Loading branch information
andreasjordan authored Nov 17, 2024
1 parent 8b922ad commit b6043dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/Install-DbaMaintenanceSolution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion public/Save-DbaCommunitySoftware.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion public/Update-DbaMaintenanceSolution.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b6043dc

Please sign in to comment.