Skip to content

Commit

Permalink
Install.ps1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ili101 committed Nov 9, 2020
1 parent 38e0cdc commit cd4533e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ Try {
else {
if (-not (Test-Path -Path $TargetPathItem)) {
$null = New-Item -Path $TargetPathItem -ItemType Directory -ErrorAction Stop
Write-Verbose -Message 'Created module folder: "{0}"' -f $TargetPathItem
Write-Verbose -Message ('Created module folder: "{0}"' -f $TargetPathItem)
}
$SubLinks = (Invoke-RestMethod -Uri $Link.git_url -Body @{recursive = '1' }).tree
foreach ($SubLink in $SubLinks) {
$TargetPathSub = Join-Path -Path $TargetPathItem -ChildPath $SubLink.path
if ($SubLink.'type' -EQ 'tree') {
if (-not (Test-Path -Path $TargetPathSub)) {
$null = New-Item -Path $TargetPathSub -ItemType Directory -ErrorAction Stop
Write-Verbose -Message 'Created module folder: "{0}"' -f $TargetPathSub
Write-Verbose -Message ('Created module folder: "{0}"' -f $TargetPathSub)
}
}
else {
Expand Down

0 comments on commit cd4533e

Please sign in to comment.