Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Hotfix/config gen #188

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Vester/Public/New-VesterConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ function New-VesterConfig {
}

# TODO: Should probably offload this to a private function
$CfgLine = (Select-String -Path $Vest.Full -Pattern '\$cfg') -replace '.*\:[0-9]+\:',''
$CfgLine -match '.*\$cfg\.([a-z]+)\.([a-z]+)$' | Out-Null
$cfgLine = (get-content $Vest.Full | where {$_.trim() -match '^\$Desired = \$cfg'}) -replace '.*\:[0-9]+\:',''
$CfgLine -match '.*\$cfg\.([a-z]+)\.([a-z]+)$' | Out-Null

# Run the $Actual script block, storing the result in $Result
If ($Object -and ($Result = & $Actual) -ne $null) {
Expand Down