Skip to content

Commit

Permalink
Updated to support folders with dot ❕ #783
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapbrasser committed Aug 25, 2021
1 parent 32ce4a7 commit 3aa47c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rubrik/Public/Start-RubrikDownload.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Start-RubrikDownload
Uri = $Uri
}

if ($Path -match '\.') {
if ($Path -match '\.' -and (-not (Get-Item -EA 0 -LiteralPath $Path|Where-Object psiscontainer -eq $true))) {
$WebRequestSplat.OutFile = $Path
} elseif ($Path) {
$WebRequestSplat.OutFile = Join-Path $Path (Split-Path -Path $uri -Leaf)
Expand Down

0 comments on commit 3aa47c6

Please sign in to comment.