File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,19 @@ function Get-SqlDscSetupLog
6161 structures and should not be user-configurable. The -Path parameter allows users to
6262 specify the root search path for cases where SQL Server is installed in non-standard locations.
6363 #>
64- $summaryFiles = Get-ChildItem - Path $Path - Filter $setupLogFileName - Recurse - ErrorAction ' SilentlyContinue' |
64+ $summaryFile = Get-ChildItem - Path $Path - Filter $setupLogFileName - Recurse - ErrorAction ' SilentlyContinue' |
6565 Where-Object - FilterScript { $_.FullName -match ' \\Setup Bootstrap\\Log\\' } |
6666 Sort-Object - Property ' LastWriteTime' - Descending |
6767 Select-Object - First 1
6868
6969 $output = @ ()
7070
71- if ($summaryFiles )
71+ if ($summaryFile )
7272 {
73- Write-Verbose - Message ($script :localizedData.Get_SqlDscSetupLog_FileFound -f $summaryFiles .FullName )
73+ Write-Verbose - Message ($script :localizedData.Get_SqlDscSetupLog_FileFound -f $summaryFile .FullName )
7474
75- $output += $script :localizedData.Get_SqlDscSetupLog_Header -f $setupLogFileName , $summaryFiles .FullName
76- $output += Get-Content - Path $summaryFiles .FullName
75+ $output += $script :localizedData.Get_SqlDscSetupLog_Header -f $setupLogFileName , $summaryFile .FullName
76+ $output += Get-Content - Path $summaryFile .FullName
7777 $output += $script :localizedData.Get_SqlDscSetupLog_Footer -f $setupLogFileName
7878
7979 return $output
You can’t perform that action at this time.
0 commit comments