Skip to content

Commit

Permalink
Install-DbaInstance - Enable installation in root folder (#9272)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan authored Mar 16, 2024
1 parent d2e59f7 commit 2e43153
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/Install-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ function Install-DbaInstance {
} else {
if ($origVal -is [int]) {
$origVal = "$origVal"
} elseif ($origVal -match '[^\\]\\$') {
# In case a value ends with a single backslash, add a second backslash to prevent escaping the following double quotation mark.
$origVal = "$origVal\"
}
if ($origVal -ne $origVal.Trim('"')) {
$output += "$sectionKey=$origVal"
Expand Down

0 comments on commit 2e43153

Please sign in to comment.