Skip to content

Commit

Permalink
Install-DbaInstance - drive path helper (#8684)
Browse files Browse the repository at this point in the history
fixes #8627
  • Loading branch information
potatoqualitee authored Dec 12, 2022
1 parent 46024d1 commit b8fe960
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/Install-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ function Install-DbaInstance {
$execParams += Update-ServiceCredential -Credential $SaCredential -PasswordName SAPWD
# And root folders and other variables
if (Test-Bound -ParameterName InstancePath) {
if ($InstancePath.Length -eq 2 -and $InstancePath.Substring(1, 1) -eq ":") {
$InstancePath = "$InstancePath\"
}
$configNode.INSTANCEDIR = $InstancePath
}
if (Test-Bound -ParameterName DataPath) {
Expand Down

0 comments on commit b8fe960

Please sign in to comment.