mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix typo in PowerShellGitHubDev.psm1 mapping
This commit is contained in:
@@ -434,7 +434,7 @@ function New-MappingFile
|
||||
param(
|
||||
[string]$mappingFilePath = "$PSScriptRoot/mapping.json",
|
||||
[switch]$IgnoreCompileFiles,
|
||||
[switch]$IgnoreResouce
|
||||
[switch]$Ignoreresource
|
||||
)
|
||||
|
||||
function Get-MappingPath([string]$project, [string]$path)
|
||||
@@ -474,11 +474,11 @@ function New-MappingFile
|
||||
}
|
||||
}
|
||||
|
||||
if ((-not $IgnoreResouce) -and ($json.resource)) {
|
||||
if ((-not $Ignoreresource) -and ($json.resource)) {
|
||||
$json.resource | % {
|
||||
if ($_) {
|
||||
ls $_.Replace('../', 'src/') | % {
|
||||
$fullPath = Join-Path $project (Join-Path 'resouces' $_.Name)
|
||||
$fullPath = Join-Path $project (Join-Path 'resources' $_.Name)
|
||||
$mapping[$_.FullName.Replace("$($pwd.Path)\", '').Replace('\', '/')] = ($fullPath.Replace("$($pwd.Path)\",'')).Replace('\', '/')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user