refactor ConfigLoader to CfgDeploy
This commit is contained in:
+4
-4
@@ -8,11 +8,11 @@ $ErrorActionPreference = 'Stop'
|
||||
|
||||
$ScriptDir = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Path }
|
||||
|
||||
$configLoader = Join-Path -Path $ScriptDir -ChildPath 'ConfigLoader.ps1'
|
||||
if (-not (Test-Path -LiteralPath $configLoader)) {
|
||||
throw "Missing ConfigLoader.ps1 in $ScriptDir"
|
||||
$cfgDeploy = Join-Path -Path $ScriptDir -ChildPath 'CfgDeploy.ps1'
|
||||
if (-not (Test-Path -LiteralPath $cfgDeploy)) {
|
||||
throw "Missing CfgDeploy.ps1 in $ScriptDir"
|
||||
}
|
||||
. $configLoader
|
||||
. $cfgDeploy
|
||||
|
||||
$useIsoDailyFormat = Use-IsoDailyFormat
|
||||
|
||||
|
||||
Reference in New Issue
Block a user