Skip to content

Commit

Permalink
Change name of branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Nov 14, 2024
1 parent 91a0250 commit 9f8c484
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 9f8c484

Please sign in to comment.