Fix typo in PowerShellGitHubDev.psm1 mapping

This commit is contained in:
Sergei Vorobev
2016-03-30 14:13:36 -07:00
parent 707af00faf
commit 136e0eecea
+3 -3
View File
@@ -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('\', '/')
}
}