Skip to content
Merged
Changes from 1 commit
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 tools/Gen2Master/MoveFromGeneration2Master.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ Function Update-MappingJson {
$MappingPath = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath '..') -ChildPath "CreateMappings_rules.json"
$MappingObject = Get-Content -Path $MappingPath | ConvertFrom-Json
Foreach ($Item in $MappingObject) {
If ($ModuleName -eq $Item.regex) {
If ($ModuleName -eq $Item.module) {
Comment thread
BethanyZhou marked this conversation as resolved.
Outdated
return
}
}
$MappingObject = $MappingObject + @{regex = $ModuleName; alias = $ModuleName }
$MappingObject = $MappingObject + @{module = $ModuleName; alias = $ModuleName }
ConvertTo-Json $MappingObject -Depth 1 | Set-Content -Path $MappingPath
}
}
Expand Down