fix: escape bakfile environment variable (#3329)
While using a custom bak file containing special characters (space and parenthesis), I fall on an exception due to the fact bak path was not escaped. This fix apply the same encapsulate than the one done for licence file.
This commit is contained in:
Родитель
caf3232372
Коммит
b0e2bbe78d
|
@ -1440,7 +1440,7 @@ try {
|
||||||
$restoreBakFolder = $true
|
$restoreBakFolder = $true
|
||||||
if (!$multitenant) {
|
if (!$multitenant) {
|
||||||
$bakFile = Join-Path $bakFolder "database.bak"
|
$bakFile = Join-Path $bakFolder "database.bak"
|
||||||
$parameters += "--env bakfile=$bakFile"
|
$parameters += "--env bakfile=""$bakFile"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1467,7 +1467,7 @@ try {
|
||||||
if ($bakFile.StartsWith($bcContainerHelperConfig.hostHelperFolder, [StringComparison]::OrdinalIgnoreCase)) {
|
if ($bakFile.StartsWith($bcContainerHelperConfig.hostHelperFolder, [StringComparison]::OrdinalIgnoreCase)) {
|
||||||
$bakFile = "$($bcContainerHelperConfig.containerHelperFolder)$($bakFile.Substring($bcContainerHelperConfig.hostHelperFolder.Length))"
|
$bakFile = "$($bcContainerHelperConfig.containerHelperFolder)$($bakFile.Substring($bcContainerHelperConfig.hostHelperFolder.Length))"
|
||||||
}
|
}
|
||||||
$parameters += "--env bakfile=$bakFile"
|
$parameters += "--env bakfile=""$bakFile"""
|
||||||
}
|
}
|
||||||
|
|
||||||
$vsixFile = DetermineVsixFile -vsixFile $vsixFile
|
$vsixFile = DetermineVsixFile -vsixFile $vsixFile
|
||||||
|
|
Загрузка…
Ссылка в новой задаче