20 lines
516 B
PowerShell
20 lines
516 B
PowerShell
function Resolve-ConfigurationDataSourcePath {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]
|
|
$Path,
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
[string]
|
|
$DeploymentPath
|
|
)
|
|
|
|
$BasePath = Split-Path -Path (Repair-ConfigurationDataPathEncoding -Path $DeploymentPath) -Parent
|
|
if([string]::IsNullOrWhiteSpace($BasePath)){
|
|
$BasePath = (Get-Location).Path
|
|
}
|
|
|
|
return Resolve-ConfigurationDataTemplatePath -Path $Path -BasePath $BasePath
|
|
}
|