Skip to content

Commit

Permalink
Some more changes... This doesn't update the build paths if they alre…
Browse files Browse the repository at this point in the history
…ady existed...
  • Loading branch information
corbob committed Oct 18, 2019
1 parent 17d3273 commit 42411d4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions PSProfile/Classes/PSProfile.Classes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -646,14 +646,13 @@ if ($env:AWS_PROFILE) {
'FindProjects',
'Verbose'
)
$currPath = $_.Parent
$currPath = $_
while($this.GitPathMap.ContainsKey($PathName)){
$this._log(
"Uh oh... $PathName already exists for a git repository...",
'FindProjects',
'Warning'
)
$PathName = "$PathName-$($currPath.Parent.BaseName)"
$currPath = $currPath.Parent
$doublePath = [System.IO.DirectoryInfo]::new($this.GitPathMap[$PathName])
$this.GitPathMap["$($doublePath.Parent)\$($doublePath.BaseName)"] = $doublePath.FullName
$this.GitPathMap.Remove($PathName)
$PathName = "$($currPath.Parent.BaseName)\$PathName"
}
$this.GitPathMap[$PathName] = $FullPathName
$bldPath = [System.IO.Path]::Combine($FullPathName,'build.ps1')
Expand Down

0 comments on commit 42411d4

Please sign in to comment.