Skip to content

Commit

Permalink
Update Build Paths if they're duplicated.
Browse files Browse the repository at this point in the history
This will keep the git path and build path in sync.
  • Loading branch information
corbob committed Oct 22, 2019
1 parent 42411d4 commit 14d5c63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PSProfile/Classes/PSProfile.Classes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,11 @@ if ($env:AWS_PROFILE) {
$doublePath = [System.IO.DirectoryInfo]::new($this.GitPathMap[$PathName])
$this.GitPathMap["$($doublePath.Parent)\$($doublePath.BaseName)"] = $doublePath.FullName
$this.GitPathMap.Remove($PathName)
if($this.PSBuildPathMap.ContainsKey($PathName)){
$PSBuildPath = [System.IO.DirectoryInfo]::new($this.PSBuildPathMap[$PathName])
$this.PSBuildPathMap["$($PSBuildPath.Parent)\$($PSBuildPath.BaseName)"] = $doublePath.FullName
$this.PSBuildPathMap.Remove($PathName)
}
$PathName = "$($currPath.Parent.BaseName)\$PathName"
}
$this.GitPathMap[$PathName] = $FullPathName
Expand Down

0 comments on commit 14d5c63

Please sign in to comment.