From b3bb04672019dd3a37e1dc13b1bdd74d5236b290 Mon Sep 17 00:00:00 2001 From: githubsqltoolsse <41336186+githubsqltoolsse@users.noreply.github.com> Date: Tue, 15 Jan 2019 22:12:09 +0100 Subject: [PATCH] Update Install-DbaMaintenanceSolution.ps1 Fixed path for output directory in Install-DbaMaintenanceSolution #4950 --- functions/Install-DbaMaintenanceSolution.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/Install-DbaMaintenanceSolution.ps1 b/functions/Install-DbaMaintenanceSolution.ps1 index ace078fd0e..de40f7414b 100644 --- a/functions/Install-DbaMaintenanceSolution.ps1 +++ b/functions/Install-DbaMaintenanceSolution.ps1 @@ -234,7 +234,7 @@ function Install-DbaMaintenanceSolution { } # OutputFileDirectory - if (-not $OutputFileDirectory) { + if ($OutputFileDirectory) { $findOutputFileDirectory = 'SET @OutputFileDirectory = NULL' $replaceOutputFileDirectory = 'SET @OutputFileDirectory = N''' + $OutputFileDirectory + '''' $fileContents[$file] = $fileContents[$file].Replace($findOutputFileDirectory, $replaceOutputFileDirectory)